blob: d1c79ae32863ad489a35d6a89d0c4377f7a53541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* This file is in the public domain.
Source code of the C program. */
/* Get printf() declaration. */
#include <stdio.h>
/* Get getpid() declaration. */
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
int
main ()
{
printf ("%s\n", "Hello, world!");
printf ("This program is running as process number %d.", getpid ());
putchar ('\n');
return 0;
}
|