OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
upcase.c
Go to the documentation of this file.
1 /***********************************************************************
2  *
3  * This subroutine converts lowercase letters in INSTR to uppercase.
4  *
5  * B.D.Schieber, GSC, 2/93
6  *
7  ************************************************************************/
8 #include <ctype.h>
9 
10 char *upcase(char *instr) {
11  char *strptr = instr;
12 
13  while (*instr != '\0') {
14  if (islower(*instr)) *instr = toupper(*instr);
15  instr++;
16  }
17 
18  return (strptr);
19 }
20 
char * upcase(char *instr)
Definition: upcase.c:10