<分区>
获取进程id时pid_t数据类型和int数据类型有什么区别? 我看到了类似的东西:
pid_t getpid(void);
但是它和
有什么区别int getpid(void);
<分区>
获取进程id时pid_t数据类型和int数据类型有什么区别? 我看到了类似的东西:
pid_t getpid(void);
但是它和
有什么区别int getpid(void);
最佳答案
引自libc manual :
The pid_t data type is a signed integer type which is capable of representing a process ID. In the GNU C Library, this is an int.
关于c - C中pid_t和int的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53256436/