Re: memory allocation under AIX 3.2
Posted in 1992
}Date: Wed, 2 Sep 92 22:38:00 GMT }Message-Id: <9209022238.AA05733@obelix.informix.com> }Subject: Re: memory allocation under AIX 3.2 }X-Informix-List-Id: <list.1424> } }}Date: Tue, 1 Sep 92 18:35:28 +0100 }}From: Manuel Monteiro <uunet!ssf.pt!mm> }}Subject: memory allocation under AIX 3.2 }}X-Informix-List-Id: <list.1423> }} }}I had the following problem when upgrading from AIX 3.1 to AIX 3.2. }} }}In a esql/c program, when you pushquote((char *)str, strlen(str)), }}what is really pushed into the stack is the pointer to the string, not }}the contents of the string (I didn't know that 'call by reference' was }}supported :-). Time to grovel apologetically. I was working too late at night to spot that the function which should be called is retquote, not pushquote. If you use the correct function, you get the correct results. Your code, Manuel, is simply wrong and should use retquote. My answer was wrong in not pointing this out. My thanks to Dave Cortesi for pointing out the error of my ways. Yours apologetically, Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>