Name: Anonymous 2007-07-03 16:01 ID:QeLHvrNT
I'm porting a small app from linux to windows and I need a replacement for truncate() function
will this:
FILE *file;
char *path="/tmp/aaa.txt";
long outpos;
file = fopen(path);
/* some code changing file */
chsize(file->_file, outpos);
fclose(file);
work as in the same way as truncate()?
will this:
FILE *file;
char *path="/tmp/aaa.txt";
long outpos;
file = fopen(path);
/* some code changing file */
chsize(file->_file, outpos);
fclose(file);
work as in the same way as truncate()?