cutting file by fwrite() EOF ?

From: vertigo (ax178_at_wp.pl)
Date: 09/28/04


Date: Tue, 28 Sep 2004 13:27:53 +0200

Hello
I wanted to cut file, so i:

int *data=(int*)malloc(sizeof(int));
data[0]=EOF;
fseek(file,new_size,SEEK_SET);
fwrite((void*)data,sizeof(int),1,file);

but this does not work. Why ? How can i cut file ?

Thanx
Michal