DataLoader/MX Reference Manual (G06.24+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—525872-002
5-38
Miscellaneous Utility Procedures
Miscellaneous Utility Procedures
These procedures provide additional services.
DTLHash1UnsignedLong
This procedure generates a random 32-bit integer from the key passed.
The syntax is:
DTLStrcmpi
This procedure makes a case-insensitive comparison between two strings that are
standard null-terminated C strings. If Str1 is less than Str2, DTLStrcmpi returns a
negative value. If they are equal, DTLStrcmpi returns 0. If Str1 is greater than Str1,
DTLStrcmpi returns a positive value.
The syntax is:
DTLStrdup
This procedure creates a duplicate of a standard, null-terminated C string. It is the
caller’s 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.
unsigned long DTLHash1UnsignedLong( void* Key, long Len );
short DTLStrcmpi( char* Str1, char* Str2 );
char* DTLStrdup( char* String );
char* DTLStrlastchr( char* String, char Char );