📄 popen_ex3.c
字号:
/* popen_ex3.c * shows how to use popen to write to a process that * reads from stdin. This program writes email to * two users. Note how easy it is to use fprintf * to format the data to send. */#include <stdio.h>main(){ FILE *fp; fp = popen( "mail admin backup", "w" ); fprintf( fp, "Error with backup!!\n" ); pclose( fp );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -