1 2 3 4 5 6 7
#include <libpq-fe.h> int main(void) { const char *kw[] = {"a", NULL}; const char *val[] = {"b", NULL}; return PQconnectdbParams(kw, val, 0) != NULL; }