/* This file is in the public domain. Source code of the C program. */ /* Get printf() declaration. */ #include /* Get getpid() declaration. */ #if HAVE_UNISTD_H # include #endif int main () { printf ("%s\n", "Hello, world!"); printf ("This program is running as process number %d.", getpid ()); putchar ('\n'); return 0; }