Re: dirent structure and fwrite

2002-07-02 Thread Eliran
> fwrite(de->d_name, strlen(de->d_name), 1, stdout); Hmm, I think I just found my problem! it was the size allocating... I didn't know what to write there.. Thanks alot! = To unsubscribe, send mail to [EMAIL PROTECT

Re: dirent structure and fwrite

2002-06-30 Thread Christoph Bugel
On 2002-06-30, Eliran wrote: > Hello ! > > I'm trying to use the command *fwrite()* (not write()) to write the content > of de->d_name (de is the structure name,) to a file, I have tried many ways > but it always get scrambled and I hear beeps (like trying to cat a binary > file). > > I'm using

dirent structure and fwrite

2002-06-30 Thread Eliran
Hello ! I'm trying to use the command *fwrite()* (not write()) to write the content of de->d_name (de is the structure name,) to a file, I have tried many ways but it always get scrambled and I hear beeps (like trying to cat a binary file). I'm using the "a" mode for fopen not "b". What can I d