S
SW1
Well, i think realloc should always work if you just make the
buffersize smaller, and thats all I'm doing, if you look at it closely
realloc can't ever make the memory bigger in my code (the IF statement
does that). Well anyway I'm not having trouble with realloc, I have
trouble fwriting and the strange thing is on my WinXP machine it works
and on my Win2000 it doesn't. The only thing I wanted to know is if
anybody encountered the same problem before, not what i've done wrong
elsewhere in my Code, I don't care since it compiles alright and does
everything i want, except fwrite!! A´nd one thing: there is a recv();
function if you include winsock32 or sock (depending on which OS your
coding). And one thing I would like to now, if there are any
restrictions on fwrite, e.g. how many bytes you can write max. in one
fwrite call. If it makes you guys happy then i build in error
checking, and maybe your right and I'm wrong.
One last thing, I think in any of human interactions you shouldn't
offend others. Maybe there not as smart, or as good as you in
something, but certainly you don't get much help from people you
offend. And if your angry go somewhere else but don't offend people
you don't even know, thats just cheap. I thought this group was about
helping each other out, or sharing knowledge not being rude.
Thanks to all who tried to be helpfull, and shame on the people who
are just being rude.
buffersize smaller, and thats all I'm doing, if you look at it closely
realloc can't ever make the memory bigger in my code (the IF statement
does that). Well anyway I'm not having trouble with realloc, I have
trouble fwriting and the strange thing is on my WinXP machine it works
and on my Win2000 it doesn't. The only thing I wanted to know is if
anybody encountered the same problem before, not what i've done wrong
elsewhere in my Code, I don't care since it compiles alright and does
everything i want, except fwrite!! A´nd one thing: there is a recv();
function if you include winsock32 or sock (depending on which OS your
coding). And one thing I would like to now, if there are any
restrictions on fwrite, e.g. how many bytes you can write max. in one
fwrite call. If it makes you guys happy then i build in error
checking, and maybe your right and I'm wrong.
One last thing, I think in any of human interactions you shouldn't
offend others. Maybe there not as smart, or as good as you in
something, but certainly you don't get much help from people you
offend. And if your angry go somewhere else but don't offend people
you don't even know, thats just cheap. I thought this group was about
helping each other out, or sharing knowledge not being rude.
Thanks to all who tried to be helpfull, and shame on the people who
are just being rude.