This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/getpid.c

13 lines
247 B
C

#include <stdio.h>
#include <process.h>
void main()
{
unsigned int process_id;
auto char filename[13];
process_id = getpid();
/* use this to create a unique file name */
sprintf( filename, "TMP%4.4x.TMP", process_id );
}