TutStrUpr convert a string to uppercase
dest
converted string
src
original (source) string
Pointer to the converted string.
None
TutStrUpr converts a character string from lowercase to uppercase. It takes two character pointers as arguments. The first pointer, dest
, points to the pre-allocated array that should be big enough to hold the converted string. The second pointer, src
, points to the string to be converted to uppercase.
Ensure that dest
has been allocated and is large enough to hold the converted string before calling TutStrUpr.
This example converts a string to uppercase:
T_STR strptr; strptr = "ThiS Is A MixeD CasE StrinG" TutStrUpr(strptr, strptr); TutOut("%s\n", strptr); . . .
The TutOut statement produces this output:
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |