Re: [Info-ingres] abf 3gl function



"Nick" <Nick@xxxxxxxxxxx> wrote in message
news:mailman.1132692301.7020.info-ingres@xxxxxxxxxxxxxxxxxx
> Could you not do something like this
>
> char *myfunction(char *mystrvar, int maxlen)
> {
> strcpy(mystrvar, "some string that is no longer than maxlen chars");
>
> return;
> }

Even if that worked, it would be a leap of faith on the part of the caller.
Returning a pointer to a static array would be the safe solution.

Roy


.