TO_UPPER
- Macro
- October 8, 2025
Table of Contents
TO_UPPER
TO_UPPERDescription
Converts a character to uppercase.
Parameters
| Name | Direction | Description |
|---|---|---|
c | in | The character to convert. |
Success
Returns uppercase version if lowercase, otherwise returns unchanged.
Failure
Function cannot fail - always returns a character.
Usage example (Cross-references)
- In
Io.c:724:
// For 'c' format specifier, preserve the original case
if (force_case) {
StrPushBack(o, is_caps ? TO_UPPER(byte) : TO_LOWER(byte));
} else {
StrPushBack(o, byte);
- In
Io.c:755:
// For 'c' format specifier, preserve the original case
if (force_case) {
StrPushBack(o, is_caps ? TO_UPPER(*vs) : TO_LOWER(*vs));
} else {
StrPushBack(o, *vs);
- In
Io.c:826:
// Apply case conversion if needed
if (force_case) {
char_to_store = is_caps ? TO_UPPER(char_to_store) : TO_LOWER(char_to_store);
}
- In
Io.c:1351:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1365:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1388:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1398:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}