towupper method

int towupper(
  1. int wc
)

Converts a lowercase wide character to uppercase.

Implementation

int towupper(int wc) {
  if (iswlower(wc)) {
    return wc - 32;
  }
  return wc;
}