upstr.3alc - Man Page
convert a string to upper case
Synopsis
#include "mut.h" void upstr(s, t) char ∗s, ∗t;
Parameters
- s
Pointer to the source string
- t
Pointer to the destination string
Description
upstr converts the s string to upper case in t. The space for t must be allocated by the caller, and be at least strlen(s) + 1 long.
Example
#include "mut.h" void cmp() { char ∗s = "pwet", t[5]; upstr(s, t); if (strcmp(t, "PWET")) { fprintf(stderr, "Upstr sucks, man"); EXIT(); } }
See Also
mbk(1), downstr(3).
Referenced By
October 1, 1997 ASIM/LIP6 MBK UTILITY FUNCTIONS