Re: [BUGS] Passing character data to C function

2002-10-07 Thread Peter Eisentraut
Philip Compton writes: > CREATE FUNCTION pc_fn(char(50), char(50), char(255)) RETURNS Boolean > AS '/u/students/pcompton/comp442/ass4/pc_fn.so' LANGUAGE 'C'; > > //C function prototype > int pc_fn(char* a1,char* a2,char* a3){...} > or > int pc_fn(char a1[50],char a2[50],char a3[255]){...} > > fai

[BUGS] Passing character data to C function

2002-10-04 Thread Philip Compton
After days of researching this problem all I find is that knowbody has done this successfully and documented it for me to find. I cannot determine if it is a bug or my incorrect development structure to blame. I would like to pass character data from postgreSQL 7.1.3 user function into a C pro