Sync usage with man page.
[netbsd-mini2440.git] / regress / lib / csu / initfini / initfini.c
blob9bdcda288fc459cc1572009fd5adca579f73e99f
1 /* $NetBSD: initfini.c,v 1.1 2001/07/17 03:41:03 thorpej Exp $ */
3 /*
4 * This file placed in the public domain.
5 * Jason R. Thorpe, July 16, 2001.
6 */
8 #include <sys/types.h>
9 #include <stdlib.h>
10 #include <unistd.h>
12 void i_am_init(void);
13 void i_am_fini(void);
15 int main(int, char *[]);
17 #define WRITE(str) \
18 write(STDOUT_FILENO, str, sizeof(str) - 1)
20 int
21 main(int argc, char *argv[])
24 WRITE("I am main.\n");
25 exit(0);
28 void
29 i_am_init(void)
32 WRITE("I am init.\n");
35 void
36 i_am_fini(void)
39 WRITE("I am fini.\n");