简体   繁体   English

control -d是stdin的默认停车标志吗? 在Linux C中?

[英]is control-d a default stop sign for stdin? in linux C?

is control-d a default stop sign for stdin? control -d是stdin的默认停车标志吗?

In our homework, it says command-d will be stop inputting. 在我们的作业中,它说command-d将停止输入。

Is it a default ? 是默认值吗?

Ctrl-D on Linux terminal with default settings is an end-of-file marker for stdin. 具有默认设置的Linux终端上的Ctrl-D是stdin的文件结束标记。

See also the tty demystified and the stty(1) command (and termios(3) ...). 另请参见tty神秘化stty(1)命令(和termios(3) ...)。 Use eg feof(3) after some stdio operation, or compare the result of getc(3) with EOF (etc....) to detect end-of-file conditions! 在执行某些stdio操作使用例如feof(3) ,或者将getc(3)的结果与EOF (等等)进行比较,以检测文件结束条件!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM