Originally Posted by Kurdo This is what i have now: Code: int get_number() { char *p, n, result; n = *p; That declares an uninitialised pointer p, and then dereferences it. The best case outcome of that is that it would crash.
int get_number() { char *p, n, result; n = *p;
My homepage Advice: Take only as directed - If symptoms persist, please see your debugger Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"
View Tag Cloud