Argh!! I know there's a function for doing this but I can't remember what it is! Does anybody know it?
Argh!! I know there's a function for doing this but I can't remember what it is! Does anybody know it?
toupper() to convert to upper case.
tolower() to convert to lower case.
toupper(). (which is included in ctype.h)
lowercase is tolower()
Or write your own. Write an array for a string, or if it's single don't. Then find the difference in ascii value for a and A, then convert to unsigned int, add to the other number, convert back to char. vice versa for the lowercase.
Also for future reference, there's list of all the common functions on this site. All the names are pretty descriptive - that should help a lot.