Thread: PQprint()

PQprint()

From
Yannick Cote
Date:
Hi,

    I try to use PQprint() in my interface C programs and when i use it, i
get a Segmentation fault. I know i might did an error with such pointers but
i didnt see a lot of docs about PQprint.. at least short examples ..

    i use PQprint() this way :

    ...
    PGresult *res;
    PQprintOpt opt;
    ...
    PQprint(stdout, res, &opt);

Plz tell me what's wrong there ..