Code Comments
Programming Forum and web based access to our favorite programming groups.Hello I wanted to cut file, so i: int *data=(int*)malloc(sizeof(int)); data[0]=EOF; fs(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
Post Follow-up to this messagevertigo <ax178@wp.pl> writes: > Hello > I wanted to cut file, so i: > > int *data=(int*)malloc(sizeof(int)); > data[0]=EOF; > fs(file,new_size,SEEK_SET); > fwrite((void*)data,sizeof(int),1,file); > > but this does not work. Why ? How can i cut file ? man truncate man ftruncate -- Måns Rullgård mru@mru.ath.cx
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.