Add wcstof()/wcstold() documentation (from NetBSD).
[dragonfly.git] / lib / libc_r / test / hello_s.c
blob83cc8c292af012776555cfc8139951ce9e68f8e3
1 /****************************************************************************
3 * Simple sequence mode test.
5 * $FreeBSD: src/lib/libc_r/test/hello_s.c,v 1.1.2.1 2000/07/17 22:18:32 jasone Exp $
6 * $DragonFly: src/lib/libc_r/test/hello_s.c,v 1.2 2003/06/17 04:26:48 dillon Exp $
8 ****************************************************************************/
10 #include <stdio.h>
11 #include <string.h>
12 #include <pthread.h>
14 void *
15 entry(void * a_arg)
17 fprintf(stderr, "ok 1\n");
18 fprintf(stderr, "ok \n");
19 fprintf(stderr, "ok 3\n");
21 return NULL;
24 int
25 main()
27 pthread_t thread;
28 int error;
30 fprintf(stderr, "1..3\n");
32 fprintf(stderr, "Some random text\n");
34 error = pthread_create(&thread, NULL, entry, NULL);
35 fprintf(stderr, "More unimportant text\n");
36 if (error)
37 fprintf(stderr,"Error in pthread_create(): %s\n",
38 strerror(error));
40 error = pthread_join(thread, NULL);
41 if (error)
42 fprintf(stderr, "Error in pthread_join(): %s\n",
43 strerror(error));
45 fprintf(stderr, "Hello world\n");
47 return 0;