Informix 4GL and C retquote function
Posted in 1991
Path: emory!gatech!ncar!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!mcsun!ukc!slxsys!dircon!uaa1006 From: uaa1006@dircon.co.uk (Peter Miles) Newsgroups: comp.databases Message-ID: <1991Jun30.164111.21858@dircon.co.uk> Date: 30 Jun 91 16:41:11 GMT Organization: The Direct Connection, UK I'm having difficulties with the retquote function, when I use it to return strings from a C program to an Informix 4GL program. It works fine when I use it to return a string, but does not work when I try to return a NULL string. How should I return a NULL string to the 4GL? Using the following: retquote(NULL); retquote(""); retquote((char *)'\\0'); retquote('\\0'); all cause an 'L' character to returned to the 4GL. My 4GL uses a: LET retstr=func(abc) in the .4gl file and the C function 'func'should return either a string or a NULL. Any ideas? Thanks, Pete -- Pete Miles uaa1006@dircon.co.uk ...ukc!dircon!uaa1006