SYNOPSIS
#include <unistd.h>
#include <sys/types.h>
int ftruncate(int fd, off_t length);
Someone says that offset types are usually long integers. So I use %ld to scanf it as follows:
off_t size;
scanf("%ld",&size);
ftruncate(fout,size);
But the compiler warn :expected "int" but argumant is of type "struct FILE *" What can I deal with it?