I'm getting weird results in my program, and even compile time errors, and I've got it down to the "\n" command I use in "printf()".
The program this is happening in deals with multiple processes, so I'm forking and killing processes during the program. The code runs perfectly fine, UNTIL I try to use printf() with ANYTHING containing "\n" ... doesn't matter how many of them there are in the printf() statement, it always either gives a compile time error or causes really strange program errors during run time.
I'm fairly new to Linux ... is there something I don't know about using the newline character causing weird glitches???
The program this is happening in deals with multiple processes, so I'm forking and killing processes during the program. The code runs perfectly fine, UNTIL I try to use printf() with ANYTHING containing "\n" ... doesn't matter how many of them there are in the printf() statement, it always either gives a compile time error or causes really strange program errors during run time.
I'm fairly new to Linux ... is there something I don't know about using the newline character causing weird glitches???
Comment