Linux
郭德纲的钢
这个作者很懒,什么都没留下…
展开
-
文件拷贝 模仿linux cp 实现 mycp
写前热身: 1、int fgetc(FILE *stream); fgetc()从流中读取下一个字符,返回值为int型,在文件末尾或错误时返回EOF。 2、FILE *fopen(const char *path, const char *mode); 3、int fputc(int c, FILE *stream); 标准IO实现 #include<stdio.h>...原创 2018-08-22 22:32:42 · 1697 阅读 · 0 评论 -
模仿Linux 下的 shell 实现myshell 了解shell的简单实现机制
实现前准备: 1.读取用户输入的字符串 进行裁切处理 ,裁切时以空格为标志 char *fgets(char *s, int size, FILE *stream); // 从指定的流中读入 Under normal circumstances every UNIX program has three streams opened for it when it starts up, ...原创 2018-08-23 20:08:15 · 712 阅读 · 0 评论