Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-39
Miscellaneous Utility Procedures
The syntax for this procedure follows:
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; and if Str1 is greater than Str1, DTLStrncmpi returns
a positive value.
The syntax for this procedure follows:
DTLStrndup
This procedure creates a duplicate of the first Len bytes of String, which is 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 for this procedure follows:
DTLTrimTrailingBlanks
This procedure changes the value of Len from its initial value, which is the length of
String, to a value that excludes any trailing blanks in String. It is specifically designed
to aid in the creation of SQL VARCHAR columns.
The syntax for this procedure follows:
DTLToLower
This procedure changes a standard, null-terminated C string to lowercase letters.
The syntax for this procedure follows:
char* DTLStrncat( char* Str1, DTLLEN Str1Len, char* Str2,
DTLLEN Str2Len );
short DTLStrncmpi( char* Str1, char* Str2, long Len );
char* DTLStrndup( char* String, long Len );
void DTLTrimTrailingBlanks( char* String, long* Len );
void DTLToLower( char* String );