*
* author: hackbard@hackdaworld.org
*
- * build: gcc -Wall efp_extract -o efp_extract
+ * build: gcc -Wall efp_extract.c -o efp_extract
* usage: ./efp_extract file.efp
* chmod 640 file_??
*
printf("mapping file into memory ...\n");
map=mmap(0,offset[nof-1]+len[nof-1],PROT_READ,MAP_SHARED,fd,0);
+ if(map==MAP_FAILED) {
+ perror("mmap");
+ return -1;
+ }
for(i=0;i<nof;i++) {