The code you posted is Extremely bad.
You are blindly subtracting 32 from every character.
What if the character is ALREADY upper case.
i.e. Letter 'A' = 0x41 (65) - 0x20(32) = 0x21(33) or '!'
What you want to do is "mask" the bit off.
i.e. *c &= 0xdf
this way if 'a'(0x61) ANDed with 0x20 = 'A'(0x41)
HTH
Kerry
At 11:25 PM 3/23/99 -0500, you wrote:
>Is there not a StrToUpper API function? I could only find a StrToLower().
>
>I rolled my own, running through each character doing a "*c -= 32;" for the
>time being.
>
>Thanks,
>Lenny.
>
>
>
>
Kerry W. Podolsky
[EMAIL PROTECTED]