Mail Archives: djgpp/2004/09/20/11:45:58
fOn 20 Sep 2004 02:55:18 -0700 in comp.os.msdos.djgpp,
aniruddha1981 AT yahoo DOT co DOT in (Aniruddha) wrote:
>I am having a weird problem
>
>The structure of my program is something like:
> printf(someMessage);
> printf(someMessage2);
>For the initial few runs of the loop(for), the message is displayed by the
>printf's, but after some more runs the messages are not being printed, but
>the flags are set properly.
>
>I do not know much of assembly to debug under the disassembler view, but
>during normal debug under RHIDE, the printf seems to be executing.
>
>I am flushing the output stream after every printf. Is it because of the size
>of the translation unit or some problem with insufficient memory?
If you are really printing an array of chars directly from printf,
don't do that, as if a percent char ever appears in the array, you
will invoke undefined behaviour, always use string formats to print
char arrays with printf.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -