ProbIem with EOF in C

后端 未结 7 843
既然无缘
既然无缘 2021-01-01 03:48

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

7条回答
  •  轮回少年
    2021-01-01 04:23

    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.

提交回复
热议问题