home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
prgname.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-11
|
309b
|
26 lines
#ifdef _UNIX
#include <machine/cpu.h>
extern char **environ;
char *
_prgname()
{
/* this is HIGHLY! unkosher and system dependant */
#ifdef SUN3_ARCH
return((char*)environ+32);
#else
#ifdef SUN4C_ARCH
return((char*)environ-92);
#else
return("???:");
#endif
#endif
}
#endif