📄 getpid.gml
字号:
.func getpid
#include <process.h>
int getpid(void);
.funcend
.desc begin
The &func function returns the process id for the current process.
.desc end
.return begin
The &func function returns the process id for the current process.
.return end
.* .see begin
.* .seelist getpid _threadid
.* .see end
.exmp begin
#include <stdio.h>
#include <process.h>
void main()
{
unsigned int process_id;
auto char filename[13];
.exmp break
process_id = getpid();
/* use this to create a unique file name */
sprintf( filename, "TMP%4.4x.TMP", process_id );
}
.exmp end
.class POSIX 1003.1
.system
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -