]> diplodocus.org Git - nmh/blob - docs/historical/mh-nov-1983/subs/invo_name.c
Update XOAUTH2 documentation.
[nmh] / docs / historical / mh-nov-1983 / subs / invo_name.c
1 /*
2 * This routine returns the address on the stack of the text of the
3 * first argument to the process. It only works on the VAX, and only
4 * if the process was not called with 4 empty args in a row.
5 */
6
7 char *invo_name()
8 {
9 register int *ip;
10
11 ip = (int *) 0x7ffffff8; /* Highest stack address -4 */
12
13 while(*--ip != 0) /* Look backwards for bumber */
14 ;
15 return (char *) &ip[1]; /* Next string is it. */
16 }