c에서 간단한 실행파일 만들때요 자신의 프로세스 아이디 찍을수 있나요?
환경은 리눅스입니다.
NAME getpid, getppid - get process identification SYNOPSIS #include <unistd.h> pid_t getpid(void); pid_t getppid(void); DESCRIPTION getpid returns the process ID of the current process. (This is often used by routines that generate unique tem? porary file names.) getppid returns the process ID of the parent of the cur? rent process. CONFORMING TO POSIX, BSD 4.3, SVID
SYNOPSIS #include <unistd.h>
pid_t getpid(void); pid_t getppid(void);
DESCRIPTION getpid returns the process ID of the current process. (This is often used by routines that generate unique tem? porary file names.)
getppid returns the process ID of the parent of the cur? rent process.
CONFORMING TO POSIX, BSD 4.3, SVID
새 생각 :)
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
getpid...
새 생각 :)
댓글 달기