Yes. You don't actually need line 11. Also, lines 5 and 6 should look like
char *msg = getText();
Hope this helps.
It does help, and I thank you.
Sorry, it's late and my brain is not functioning. I meant to also say that line 11 would be a good idea before line 9. Don't
printf( "%s", NULL );