18 lines
356 B
C
18 lines
356 B
C
|
#include <stdio.h>
|
||
|
#include <libpq-fe.h>
|
||
|
|
||
|
int main(int argc, char **argv) {
|
||
|
/*declarations*/
|
||
|
int isThreadSafe=0;
|
||
|
printf("main() Started...\n");
|
||
|
isThreadSafe=PQisthreadsafe();
|
||
|
if(isThreadSafe==1){
|
||
|
printf("main() libpq is thread-safe\n");
|
||
|
}else{
|
||
|
printf("main() libpq is NOT thread-safe\n");
|
||
|
}
|
||
|
printf("main() Done.\n");
|
||
|
|
||
|
return 0;
|
||
|
}
|