things people should stop doing
Aug. 14th, 2009 09:09 pmif (constant == variable)
if (pointer != 0)
if (pointer != NULL)
if (boolean == true)
}
else {
fprintf(stdout, ...);
printf("%s", variable);
printf("string with no substitutions");
printf("\n"); // or any other single character
no subject
Date: 2009-08-15 09:27 am (UTC)(In particular, I'd hesitate to deprecate printf("%s", variable) when its nearest cousin -- printf(variable) -- is so very nasty. Also, printf("%s", variable) gives you protection when variable may be NULL.)
no subject
Date: 2009-08-15 11:22 pm (UTC)