24 lines
344 B
C
24 lines
344 B
C
#include <stdio.h>
|
|
#include <netdb.h>
|
|
#include <pthread.h>
|
|
|
|
#include "sub_servs.h"
|
|
|
|
main(int argc, char **argv)
|
|
{
|
|
pthread_t th1, th2;
|
|
|
|
pthread_create(&th1,
|
|
NULL,
|
|
(void *)sub_getservent,
|
|
(void *)NULL);
|
|
pthread_create(&th2,
|
|
NULL,
|
|
(void *)sub_getservent,
|
|
(void *)NULL);
|
|
|
|
pthread_join(th1, NULL);
|
|
pthread_join(th2, NULL);
|
|
|
|
}
|