[Univ of Cambridge] [Dept of Engineering]
next up previous contents
Next: Input Up: Interactive Previous: Interactive


For efficiency, writing to files under Unix is usually buffered, so printf(....) might not immediately produce bytes at stdout. Should your program crash soon after a printf() command you might never see the output. If you want to force synchronous output you can

Tim Love