The Gen_sscanf() utility function
The Gen_sscanf() utility function scans one value from an input string and stores it at a given address. Gen_sscanf() returns a pointer that points past the value it scanned from the input string.
The Gen_sscanf() function takes the
following arguments:
| Argument | Description |
|---|---|
| Gen_Con | The database connection handle |
| Gen_Caller | The name of the calling function |
| Gen_InData | A pointer to the text to be scanned |
| Gen_InDataLen | An integer containing the length of the text (mi_lvarchar strings are not null-terminated) |
| Gen_Width | An integer containing the maximum data length for text data |
| Gen_Format | A string containing a sscanf() format string for the structure member to be scanned |
| Gen_Result | A pointer to the member in the structure where Gen_sscanf() stores the scanned value |
The generated input and import functions call Gen_sscanf() once for each structure member. Gen_sscanf() requires an input string in the current locale and uses the HCL® Informix® GLS routines to scan the string.