Evraz North America equipment may emit compact ASCII status messages that need normalization before further processing. Implement to_upper_ascii to convert every lowercase English letter in a mutable byte buffer to uppercase in place.
The conversion must affect only ASCII bytes from a through z. Preserve uppercase letters, digits, punctuation, spaces, and all other byte values unchanged. Do not call built-in string case-conversion functions. After implementing the function, explain the equivalent one-line C character expression using a conditional operator.
data, a non-empty list of integers, where each integer is an ASCII byte value from 0 through 127.c becomes c - 32; every other byte remains unchanged.def to_upper_ascii(data):