This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: printf does not work


Didn't you forgot about buffering? Default stdout is linebuffered, so if the string you're generating does not end with '\n' it won't be pushed to write(). Disable buffering (with setbbuf() or something similar) or terminate your string with newline or just call fflush(stdout).

4\/3!!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]