1 2 3 4 5
#include <sys/types.h> #include "seek.h" int seek_trunc(fd,pos) int fd; seek_pos pos; { return ftruncate(fd,(off_t) pos); }