</>EmbeddedInterview

Convert a string to uppercase without library functions.

Easy"Coding: Memory & String Functions"
void to_upper(char *s)
{
    for (; *s; s++)
        if (*s >= 'a' && *s <= 'z')
            *s = (char)(*s - ('a' - 'A'));   /* or: *s &= ~0x20 for ASCII letters */
}

Points: only change letters; in ASCII upper and lower case differ by bit 5 (0x20), so c & ~0x20 uppercases and c | 0x20 lowercases a letter (do not apply it to non-letters). Use toupper((unsigned char)c) in real code for locale correctness.