Relative Content

Monthly Archives: October 2017

Using PQexecparams with a char** array

In short, if you are creating an array of arguments to pass to PQexecparams() (i.e. char**) then you need to leave enough space to null terminate the array. Many C programs use a while loop to iterate through an array until they find a null pointer i.e. while (*argv) { //foo ++argv; }   As […]