1DOWNSTR(3) MBK UTILITY FUNCTIONS DOWNSTR(3)
2
3
4
6 downstr - convert a string to lower case
7
9 #include "mut.h"
10 void downstr(s, t)
11 char ∗s, ∗t;
12
14 s Pointer to the source string
15
16 t Pointer to the destination string
17
19 downstr converts the s string to lower case in t. The space for t must
20 be allocated by the caller, and be at least strlen(s) + 1 long.
21
23 #include "mut.h"
24 void cmp()
25 {
26 char ∗s = "PWET", t[5];
27 downstr(s, t);
28 if (strcmp(t, "pwet")) {
29 fprintf(stderr, "Downstr sucks, man");
30 EXIT();
31 }
32 }
33
35 mbk(1), upstr(3).
36
37
38
39
40
41
42ASIM/LIP6 October 1, 1997 DOWNSTR(3)