摘要:
1.程序文件#include <stdio.h>int main(){ printf("Test\n"); return 0;}2.gcc$ gcc -o test test.c在改语句之后能在目录下看到test文件执行文件 ./test即可;3.修改程序/*test.h*/#include <stdio.h>/*end file*//*test.c*/#include "test.h"int main(){ printf("Test\n"); return 0;}/*end file*/# makefileo 阅读全文
posted @ 2013-06-11 22:38
家乡的萝卜
阅读(162)
评论(0)
推荐(0)
摘要:
1.创建FIFO文件#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>int main(){ int res = mkfifo("/tmp/my_fifo", 0777); if (res == 0) printf("FIFO created\n"); exit(EXIT_SUCCESS);}qiujiahong@ubuntu:~/ch13$ gcc 阅读全文
posted @ 2013-06-11 17:37
家乡的萝卜
阅读(970)
评论(0)
推荐(0)
浙公网安备 33010602011771号