I\'m writing a program which is supposed to read two strings that can contain line breaks and various other characters. Therefore, I\'m using EOF (Ctrl-Z or Ctrl-D) to end t
How do you enter null in the program?
You can implement the -print0 function using:
putchar(0);
This will print an ASCII nul character '\0' to sdtout.