]> diplodocus.org Git - nmh/blob - docs/historical/mh-jun-1982/subs/invo_name.c
Fixed inc(1) and %(me) to not obey Local-Mailbox profile component.
[nmh] / docs / historical / mh-jun-1982 / subs / invo_name.c
1 #ifdef COMMENT
2 Proprietary Rand Corporation, 1981.
3 Further distribution of this software
4 subject to the terms of the Rand
5 license agreement.
6 #endif
7
8 /*
9 * This routine returns the address on the stack of the text of the
10 * first argument to the process. It only works on the VAX, and only
11 * if the process was not called with 4 empty args in a row.
12 *
13 * This is a crock, and it doesn't work on 4bsd.
14 * invo_name is now an external char * pointer
15 * 2/1/81 - dave yost.
16 */
17
18 char *invo_name()
19 {
20 register int *ip;
21
22 ip = (int *) 0x7ffffff8; /* Highest stack address -4 */
23
24 while(*--ip != 0) /* Look backwards for bumber */
25 continue;
26 return (char *) &ip[1]; /* Next string is i