1UPSTR(3)                     MBK UTILITY FUNCTIONS                    UPSTR(3)
2
3
4

NAME

6       upstr - convert a string to upper case
7

SYNOPSIS

9       #include "mut.h"
10       void upstr(s, t)
11       char ∗s, ∗t;
12

PARAMETERS

14       s                   Pointer to the source string
15
16       t                   Pointer to the destination string
17

DESCRIPTION

19       upstr  converts  the s string to upper case in t.  The space for t must
20       be allocated by the caller, and be at least strlen(s) + 1 long.
21

EXAMPLE

23       #include "mut.h"
24       void cmp()
25       {
26       char ∗s = "pwet", t[5];
27          upstr(s, t);
28          if (strcmp(t, "PWET")) {
29             fprintf(stderr, "Upstr sucks, man");
30             EXIT();
31          }
32       }
33

SEE ALSO

35       mbk(1), downstr(3).
36
37
38
39
40
41
42ASIM/LIP6                       October 1, 1997                       UPSTR(3)
Impressum