| /* This file is in the public domain. | |
| Source code of the C program. */ | |
| /* Every source file that uses Gnulib needs this. */ | |
| /* Get printf() declaration. */ | |
| /* Get getpid() declaration. */ | |
| /* Include Gnulib header files. */ | |
| int | |
| main () | |
| { | |
| printf ("%s\n", "Hello, world!"); | |
| printf ("This program is running as process number %d.\n", getpid ()); | |
| printf ("The parent process number is %d.\n", get_ppid_of (getpid ())); | |
| return 0; | |
| } | |