ESQLC pointer interchange
Posted in 1992
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Hi I quick question on ESQL C and passing parameters. If i have a function with a C variable and then pass that variable to another function but delcare within the other function that the variable is know a ESQL C variable will this cause a problem. EG. main() { char fred[20]; esql_fun(fred); printf("%s",fred); } esql_fun(fred) $char * fred; { EXEC SQL SELECT fred INTO :fred FROM fred; } I have written code and it does work but after a while a get a core dump and thats that. If anyone has any news about this can you mail me. One more question for all you ESQL programmers what debuggers do you use with the .ec files. I have saber-C but am having problems using it with the ESQL. Any comments . Thank you in advance Steven... Steve Giardullo - Telecom Aust |MHSnet: steve@cssc-syd.tansu.oz.au Network Services |Snail : 9th Floor, 320 Pitt Street, Sydney 2000. Customised Software Solutions | or PO Box A226, Sydney South 2000, Australia. Centre - Sydney |Phone : +61 (0)2 395 3470 Fax: +61 2 395 3225 ################################################################################ Help Us Help McDonald's POISON Our Children.