nevermind
nevermind
Last edited by hrider; 10-19-2008 at 01:34 PM.
Well I guess all I can say is my work here is done.
I like guessing:
Code:void main() // use int main(), see FAQCode:gets() // use fgets(), see FAQCode:ptr = (void *)malloc() // don't cast malloc(), see FAQ
You have the pointer indicator '*' in the wrong place even though any link referenced to support that clearly state it's fine especially in the context of C as opposed to C++, for which this is the wrong forum to be arguing about it anyhow. - the usual suspect(s)