cutting file by fwrite() EOF ?
From: vertigo (ax178_at_wp.pl)
Date: 09/28/04
- Next message: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Previous message: rc: "Re: Unix Password Encryption Procedure"
- Next in thread: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Reply: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Previous message: rc: "Re: Unix Password Encryption Procedure"
- Next in thread: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Reply: Måns Rullgård: "Re: cutting file by fwrite() EOF ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]