Debian Codegraph @

packages/seacas/libraries/supes/ext_lib/exupcs.c

raw
1 /*
2 * Copyright(C) 1999-2020, 2023 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 /*
9 */
10
11 #include <ctype.h>
12
13 #if defined(ADDC_)
14 void exupcs_(char *string, long int StrLength)
15 #else
16 void exupcs(char *string, long int StrLength)
17 #endif
18 {
19 int i;
20
21 for (i = 0; i < StrLength; i++, string++) {
22 if (!isprint(*string)) {
23 *string = ' ';
24 }
25 else if (isalpha(*string) && islower(*string)) {
26 *string = toupper(*string);
27 }
28 }
29 return;
30 }