I want to know how the “isupper” macro is defined in C/C++. Could you please provide me the same or point me to available resources. I tried looking at ctype.h but couldnt figure it out.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s implementation defined — every vendor can, and usually does, do it differently.
The most common usually involves a “traits” table – an array with one element for each character, the value of that element being a collection of flags indicates details about the character. An example would be:
In which case,, isupper() would be something like: