1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-11 11:50:52 +03:00
Files
Bruno Haible a3c4f3ffbe Add simple examples.
* examples: New directory.
2021-12-15 19:59:01 +01:00

23 lines
365 B
C

/* 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;
}