a^=(b^=a); ?2920 (9/5/2006 7:01:41 PM) comp.lang.c Is this legal C expression a^=(b^=a); (wrt to sequence points) ? Yakov ... iler.ml(41)
sequence points and evaluation order929 (9/4/2006 9:39:14 PM) comp.lang.c I've been playing with splint, which returns the following warning for the code below: statlib.c: (in function log_norm_pdf) statlib.c(1054,31): Expression has undefined behavior (left operand uses errno, ... JSmith2(131)
Any undefined behavior???939 (9/2/2006 7:02:40 PM) comp.lang.c The following code produces the expected results on a PC using gcc, but I need to port it (or least something similar) to a different platform/compiler. I don't think I've introduced any undefined behavior b... alschroeder(2)
bool variable.(a non-standard question)6425 (9/2/2006 10:33:34 AM) comp.lang.c I have code which says #define MYBOOL int This code is very old. people who have written is not avaible. I was thinking what could be reason. 1) bool datatype was not available that time (10 years back: corr... shaanxxx(110)
CERT C Programming Language Secure Coding Standard733 (8/31/2006 7:19:08 PM) comp.lang.c The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already developed significan... rcs4646(32)
Dynamic buffer library2624 (8/30/2006 9:48:37 PM) comp.lang.c I hacked this together this morning so that I could shift my out-of- space code away from the rest of my logic. I wanted to allow array syntax on my dynamic buffers, so I manually created a struct with malloc(... apoelstra7169(201)
Fibonacci implementation1925 (8/28/2006 8:00:24 AM) comp.programming Hi, I'm looking for a non-recursive implementation of the algorithm to calculate Fibonacci numbers. Any language is OK (C/C++, pseudo code prefered). Any hints? Thank you, Chris ... plfriko(499)
break/continue in loops1233 (8/25/2006 10:40:06 AM) comp.programming Hello everyone, Is the use of break and continue in loops good programming practice ? What do you think ? some positive points i could find: improves readability in some cases and avoids the use of f... cristian.codorean(4)
Code Comprehension12523 (8/25/2006 1:07:27 AM) comp.programming I regularly find myself staring at a bit of (usually terse) code for frustratingly long periods of time before I can, hopefully, understand what it does. Does this get easier with experience/practise? Is there ... jj4860(2)