home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
INFO
/
C
/
DLIBSSRC.ZIP
/
GETPID.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1987-06-14
|
241 b
|
13 lines
extern char *_base;
int getpid()
/*
* Return an integer value unique for this process.
*/
{
register unsigned long n;
n = _base; /* load process base address */
return(0x7FFF & (n>>8)); /* create unique pid from it */
}