/****************************************************************************/ /* */ /* Module: deskey.c */ /* */ /* Function: Determine if the program was launched from the desktop, */ /* and cause a keypress wait to hold the screen if it was. */ /* */ /* Author: George R. Woodside */ /* */ /* Date: January 21, 1988 */ /* */ /****************************************************************************/ #include #include extern char *getenv(); /* check environment */ deskey() { register char *path; /* pointer to return string */ path = getenv("PATH"); /* check for a path */ if((path == NULL) || (*path == '\0')) /* if no path */ { Cconws("Press any key. "); /* prompt for a key */ Crawcin(); /* get a keypress */ } /* end probably from desktop */ } /* end deskey */