Mail Archives: djgpp/1995/09/04/20:17:18
firstpr AT ozemail DOT com DOT au (Robin Whittle) wrote:
>printf() works fine for me, except when I use a string from somewhere
>else, in which case it ignores the \n \t codes, but still works fine
>with the %f codes.
>
> printf(p->txtstring, *p->kval1, *p->kval2, *p->kval3, *p->kval4);
Not surprising, really. Check out ISO/C, 5.2.1. Escape sequences are
defined for character constants and string literals. In practice, that
means that the compiler usually resolves escape sequences, not the library
functions which act on characters.
>This may not be DJGPP specific - but I don't know where else to ask.
It's not DJGPP specific.
Soenke
--
I don't know what it is he's doing, it must be art
- Raw text -