Quote Originally Posted by Kurdo View Post
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.