malloc always setting length of 8?
Why would it do that?
Here's basically what it is...
No matter what I do, setting a static int in malloc, strlen, whatever, it gives me 8. I have about 3 or 4 malloc calls above this one that work fine. Why is this one giving me problems? No matter what I name it, its an issue o_0;
file_source = (char*) malloc (strlen("Whatever I want"));
Hmm.. Just played a bit with this... I commented out the above fclose, and malloc set fine. Why would fclose effect a malloc?