summaryrefslogtreecommitdiff
path: root/userspace/cat.c
blob: a3713975b6affd0edaa3946a32147f57be6d8da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

int main()
{   
    FILE *f = fopen("README", "r");  

    if (f == NULL)
    {
	perror("unable to open file");
	return 1;
    }

    puts("open success");
    fclose(f);

    return 0;
}