> 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
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
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