Letchu.MAL wrote:
>
>Hi,
>I am trying to call a simple C function from Informix 4gl.. The
>parameter which I pass is of the Character type . The code is as
>follows
>4gl -Code
> Call test("informix.txt")
>
> C-code
> void test(char *teststring)
> printf("The test string = %s",teststring);
>
> When the prinf statement is executed I get a segmentation fault core
> dump.
Letchu and rest of the family,
I refer you to Appendic-C of the 4GL reference, which describes this in
excellent detail. No way I can condense 40 pages into a quick sound
bite.
Good luck with this.
PS. Your login ID, Letchu, makes me think of a Hungarian vegetable dish
>;)
--
-- Jake (Engaged in the persuit of undomesticated aquatic avians)
+-----------------------------------------------------------+
| Impeccable Logic: A thought process which successfully |
| resists chicken bites |
+-----------------------------------------------------------+