Re: [GENERAL] ECPG - how to fetch then sort strings

2006-09-09 Thread Poul Jensen
Martijn van Oosterhout wrote: Please don't use "reply" to start new thread, thanks. On Fri, Sep 08, 2006 at 05:55:44AM -0800, Poul Jensen wrote: I need to fetch strings from a database with ECPG and then sort them in C. Here is one of my failed attempts: varchar filenms[][maxlen

Re: [GENERAL] ECPG - how to fetch then sort strings

2006-09-08 Thread Martijn van Oosterhout
Please don't use "reply" to start new thread, thanks. On Fri, Sep 08, 2006 at 05:55:44AM -0800, Poul Jensen wrote: > I need to fetch strings from a database with ECPG and then sort them in > C. Here is one of my failed attempts: > varchar filenms[][maxlen]=NULL; I think you need to reread the

[GENERAL] ECPG - how to fetch then sort strings

2006-09-08 Thread Poul Jensen
I need to fetch strings from a database with ECPG and then sort them in C. Here is one of my failed attempts: ### int main(int argc, char *argv[]) { int maxlen=20; long nrec; EXEC SQL BEGIN DECLARE SECTION; varchar filenms[][maxlen]=NULL; char dbnm[50]; EXEC SQL