blob: 9ebe674638605fdb52aec714d51791cd5df53062 [file] [log] [blame]
#include <stdio.h>
int main(void)
{
char buffer[1024];
FILE *f;
f = fopen("/etc/passwd", "r");
fgets(buffer, 1024, f);
fclose(f);
printf("Line 1 = %s", buffer);
return 0;
}