So here's my code:

```
main()
{
        char *iochar;                                                                                   

        printf(" Enter a standard line: ");                                                             
        scanf ( "%s", &iochar);

        if (iochar != NULL)
        {
                printf(" Here's what you entered: %s ", &iochar);
        }
        else
        {
                printf(" Oops! Looks like you forgot to enter something! ");
        }
}

```

My problem is that I can scan the user entry and store it and if something exists it puts out the correct message. But if I just hit return to test for no input (null, empty, etc) the program neither quits nor outputs my error message. It just hangs until I input something.

I've been programming in Java for the last two semesters so C is totally lost on me right now. So any help would be much appreciated.