Re: Informix ESQL/C SQLDA-structure problem
Posted in 1991
Path: emory!wuarchive!uunet!mcsun!ukc!axion!vision!chris From: chris@visionware.co.uk (Chris Davies) Newsgroups: comp.databases Keywords: INFORMIX DYNAMIC ESQL/C Message-ID: <1991Jul1.151629.3175@visionware.co.uk> Date: 1 Jul 91 15:16:29 GMT References: <1991Jun26.121056.19420@nntp.hut.fi> <344@devnull.mpd.tandem.com> Organization: VisionWare Ltd., Leeds, UK In article <1991Jun26.121056.19420@nntp.hut.fi> vwa@cs.hut.fi writes: >When storing integer information in the sqlda-structure > sqlda->sqlvar[i].sqldata = malloc (SIZINT) In article <344@devnull.mpd.tandem.com> lance@mpd.tandem.com (Lance Hartmann) writes: >Remember that a malloc() doesn't force any kind of boundary alignment. From the AT&T SVID (System V definition), "The function <malloc> returns a pointer... suitably aligned for any use". From the SunOS manual page, "malloc() returns a pointer to a block... which is appropriately aligned" (Currently I don't have access to true BSD). However, it is important still to use rtypalign() and force the types to be those for C rather than for internal Informix use. Chris -- VISIONWARE LTD, 57 Cardigan Lane, LEEDS LS4 2LE, England Tel +44 532 788858. Fax +44 532 304676. Email chris@visionware.co.uk -------------- "VisionWare: The home of DOS/UNIX/X integration" -------------