downstr.3alc man page

downstr — convert a string to lower case

Synopsis

#include "mut.h"
void downstr(s, t)
char ∗s, ∗t;

Parameters

s

Pointer to the source string

t

Pointer to the destination string

Description

downstr converts the s string to lower 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];
	downstr(s, t);
	if (strcmp(t, "pwet")) {
		fprintf(stderr, "Downstr sucks, man");
		EXIT();
	}
}

See Also

mbk(1), upstr(3).

Referenced By

upstr.3alc(3).

October 1, 1997 ASIM/LIP6 MBK UTILITY FUNCTIONS