I have two string returning function in ESQL/C
char *segment_name(lbuffer)
char *lbuffer;
{.....
and
char *get_bpdvalue(f_name)
char *f_name;
{......
both declared above main()
char *get_bpdvalue();
char *segment_name();
my problem is segment_name works on sprintf and strcpy while get_bpdvalue only works on strcpy and not sprintf
. someone told me that sprintf using string returning function usually has that bug.
ok, i can use strcpy first before i using sprintf but that would make my code longer. and i cant just accept the fact that ESQL/C has that kind of bug
. i hope someone can point me here in the right direction
, is there something i can do abou the function or its declaration to make it work in sprintf? thanks a lot...