🦄 refactor(C13, C14, C115): 更新了linux系统开发部分的结构
This commit is contained in:
27
C13-IO/sys/ab.c
Normal file
27
C13-IO/sys/ab.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
putchar('a');
|
||||
write(1, "b", 1);
|
||||
|
||||
putchar('a');
|
||||
write(1, "b", 1);
|
||||
|
||||
putchar('a');
|
||||
write(1, "b", 1);
|
||||
|
||||
/**
|
||||
* 这里标准IO与文件IO混用
|
||||
* 实际输出:
|
||||
* bbbaaa
|
||||
*
|
||||
* 命令 strace
|
||||
* 可以跟踪系统调用
|
||||
*
|
||||
*/
|
||||
|
||||
exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user