I am trying to read a file from an offset till end of file:
int i,sizeb=210;
char *buffer; //[1024];
FILE *f;
f = fopen("myfile", "rb");
printf("Reading file.\n");
fseek(f, sizeb, SEEK_SET);
long s = ftell(f);
//rewind(f);
fread(buffer, s, 1, f);
fclose(f);
But I never get the right result.
Also when I use a large buffer like buffer[10240000] it wil crash immediately upon running it.
Maybe someone can help me fix it.