Logo Search packages:      
Sourcecode: bglibs version File versions

void str_upper ( str s  ) 

Translate all lower-case characters to upper-case

Definition at line 22 of file upper.c.

References len, and s.

{
  char* ptr;
  unsigned i;
  for (i = 0, ptr = s->s; i < s->len; ++i, ++ptr)
    if (islower(*ptr)) *ptr = toupper(*ptr);
}


Generated by  Doxygen 1.6.0   Back to index