Mapper
libraries
cbrfc
case_u.c
Go to the documentation of this file.
1
/* Routine to convert all lower case characters in the string c up through
2
* the nth character to upper case.
3
* rkh 12/92 */
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include <math.h>
7
8
void
case_u
(c, c_s, n)
9
char
*c;
10
int
c_s;
11
long
int
*n;
12
{
13
static
long
int
i
, i_, _fst;
14
15
for
(
i
= 1, _fst=1; (
i
<= *n) || _fst;
i
++, _fst=0 )
16
{
17
i_ =
i
- 1;
18
if
( c[
i
- 1] >=
'a'
&& c[
i
- 1] <=
'z'
)
19
{
20
c[
i
- 1] = (( c[
i
- 1] ) - 32);
21
}
22
}
23
return
;
24
}
25
case_u
void case_u(char *c, int c_s, long int *n)
Definition:
case_u.c:8
i
static int i
Definition:
get_apps_defaults.c:110
Generated by
1.9.1