Thanks. I may look into malloc. For now, I'll just leave it static and just recompile it if I ever need to convert a huge document. Ok, I have one last question. If I can fix this, this baby will work perfectly. I have worked with this for days but can't get it to do right. Since the file...
Ok, this is about my tenth time to post this. Hopefully it'll work now that I registered. Yes, that was indeed the problem. I thought when you declared a char pointer, it worked as a dynamic array. That was apparently wrong. Is there an easy way to create a dynamic array? Thanks.
I was trying to create a simple C program to take out all the ^M's that appear when you view a Windows text file in Unix. (I'm using FreeBSD by the way.) So far, I've just created enough that it reads character by character and stores anything that's not equal to 0x0D in a buffer. I'll worry...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.