Hello, I can't find a function that allows me to do this, I always seem to get an error with every one I use(call to undefined function).. I'm using Borland 5.02, is there a specific one that's used only in this. I greatly appreciate any help... Thanks!
If you have a C-style ANSI string you can use the tolower() or toupper() functions in the C library header <cctype>, towlower() and towupper() if you have wide characters.
http://www.cplusplus.com/reference/cctype/
http://www.cplusplus.com/reference/cwctype/
The first bit of code worked fine in Visual Studio 2015. Since the code is simple c code I do not think that Borland would be your problem. The while loop works because toupper() and tolower() work on a single character not a string of characters. the putchar() changes the int returned by toupper() to an unsigned char before it is output to the screen.
I do not know why you only were able to get one character to change, but maybe you could step through the while loop to see what happens with each iteration.