hello_d.c revision 267654
1/**************************************************************************** 2 * 3 * Simple diff mode test. 4 * 5 * $FreeBSD: releng/9.3/lib/libkse/test/hello_d.c 59612 2000-04-24 21:07:45Z jasone $ 6 * 7 ****************************************************************************/ 8 9#include <stdio.h> 10#include <string.h> 11#include <pthread.h> 12 13void * 14entry(void * a_arg) 15{ 16 fprintf(stderr, "Hello world\n"); 17 18 return NULL; 19} 20 21int 22main() 23{ 24 pthread_t thread; 25 int error; 26 27 error = pthread_create(&thread, NULL, entry, NULL); 28 if (error) 29 fprintf(stderr, "Error in pthread_create(): %s\n", 30 strerror(error)); 31 32 error = pthread_join(thread, NULL); 33 if (error) 34 fprintf(stderr, "Error in pthread_join(): %s\n", 35 strerror(error)); 36 37 return 0; 38} 39