mirror of
https://github.com/yanfeizhang/coder-kung-fu.git
synced 2026-02-09 13:25:25 +08:00
16 lines
210 B
C
16 lines
210 B
C
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main()
|
|
{
|
|
char c;
|
|
int in;
|
|
int i;
|
|
|
|
in = open("in.txt", O_RDONLY);
|
|
for(i=0; i<100; i++){
|
|
read(in,&c,1);
|
|
}
|
|
return 0;
|
|
}
|