DataLoader/MX Reference Manual (H06.03+, J06.03+)

Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual543544-001
5-39
Miscellaneous Utility Procedures
The syntax is:
DTLStrdup
This procedure creates a duplicate of a standard, null-terminated C string. It is the
callers responsibility to free this duplicate string when it is no longer needed.
The syntax is:
DTLStrlastchr
This procedure returns a pointer to the last occurrence of a given character in a
standard null-terminated C string. If the character never appears in the string, NULL is
returned.
The syntax is:
DTLStrncat
This procedure copies Str2Len characters from Str2 to position Str1Len and after
in Str1, first using realloc to ensure Str1 is big enough to hold the additional
characters. The procedure returns the pointer to the combined string, which might not
be the same as Str1 if realloc has to move the string.
The syntax is:
DTLStrncmpi
This procedure makes a case-insensitive comparison between two strings. The strings
are standard NULL-terminated C strings. However, only the first Len bytes are
compared. If Str1 is less than Str2, DTLStrncmpi returns a negative value. If they are
equal, DTLStrncmpi returns 0. If Str1 is greater than Str1, DTLStrncmpi returns a
positive value.
The syntax is:
short DTLStrcmpi( char* Str1, char* Str2 );
char* DTLStrdup( char* String );
char* DTLStrlastchr( char* String, char Char );
char* DTLStrncat( char* Str1, DTLLEN Str1Len, char* Str2,
DTLLEN Str2Len );
short DTLStrncmpi( char* Str1, char* Str2, long Len );