
#include <pthread.h>
#include <fcntl.h>
#include <stdio.h>

main()
{
    char * filename = "test_stdio_1.c";
	char buf[128];
	FILE * fp;
    int    i, j;

    pthread_init();

	if ((fp = fopen(filename, "r")) == NULL ) {
		printf("error: open\n");
	}
	
	j = fseek(fp, 0, SEEK_CUR);
	fread (buf, 120, 1, fp);
	buf[120] = '\0';

	printf("We're at %d\n %s\n", j, buf);
	exit(0);

}


