Hi allI am trying to create a common interface between COBOL and the runtime C library, especially the RegEx related functions. The regex.h header file indicates that the regmatch_t structure consists of two long variables (i.e. two pic s9(18) comp-5.). This structure is used as an element of an array of such elements for however reasonable amount needed.When I call the regexec function, it looks like the program returns as the first component of the first element only int (i.e. PIC s9(9) COMP-5.). All other components of that element and subsequent ones are correct. For example, I was supposed to get (0,15),(8,2)so I get 00000000 000000000000000F 0000000000000002 0000000000000008 instead of 0000000000000000 000000000000000F 0000000000000002 0000000000000008 Does anybody have a clue about why do I get such a bizarre behavior. Ze'ev Atlas
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN