Printf

Some articles on printf:

Coding Conventions - Examples - Looping and Control Structures
... the construct (a common typo) for (i = 0 i < 5 ++i) printf("%d\n", i*2) /* The incorrect indentation hides the fact that this line is not part of the loop body ... printf("Ended loop")...or where another line is added before the first for (i = 0 i < 5 ++i) fprintf(logfile, "loop reached %d\n", i) printf("%d\n", i ... */ printf("Ended loop") ...
Gotcha (programming) - Gotchas in The C Programming Language - Function Calls
... File name fortytwo.c */ #include foo { printf(" 42!\n") } int main { printf("I will here below write '42'\n") foo printf("I think I wrote '42', but I'm not quite sure...\n ...
Cayenne (programming Language)
... An example of a function that can be given a type in Cayenne is printf ... cs PrintfType ( _ cs) = PrintfType cs printf' (fmtString) -> String -> PrintfType fmt printf' (Nil) out = out printf' ('%'('d'cs)) out = \ (iInt) -> printf' cs (out ++ show i) printf' ('%'('s'cs)) out = \ (sString ...
Printf Format String - Custom Format Placeholders
... There are a few implementations of printf-like functions that allow extensions to the escape-character-based mini-language, thus allowing the programmer to ... Some applications (like the Apache HTTP Server) include their own printf-like function, and embed extensions into it ... Most non-C languages that have a printf-like function work around the lack of this feature by just using the "%s" format and converting the object to a string representation ...
Signature Program - Optimisation and Example
... of the Sierpinski triangle fractal, shown in the illustration main(c,r){for(r=32r) printf(++c>31?c=!r--,"\n"c 31) { c = !r /* same as c = 0 */ r = r - 1 printf("\n ...