.\" $Id: downstr.3,v 1.1 2002/03/08 13:51:02 fred Exp $ .\" @(#)downstr.2 2.11 91/08/22 ; Labo masi cao-vlsi; Author : Frederic Petrot .if t \{\ .XS \n% .ti 0.2i downstr .XE .XS4 \n% .ti 0.2i downstr .XE4 \} .TH DOWNSTR 3 "October 1, 1997" "ASIM/LIP6" "MBK UTILITY FUNCTIONS" .SH NAME downstr \- convert a string to lower case .so buster/alliance/alc_origin.1.en.gz .SH SYNOPSYS .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include "mut.h" void downstr(s, t) char \(**s, \(**t; .ft R .fi .SH PARAMETERS .TP 20 \fIs\fP Pointer to the source string .TP \fIt\fP Pointer to the destination string .SH DESCRIPTION \fBdownstr\fP converts the \fIs\fP string to lower case in \fIt\fP. The space for \fIt\fP must be allocated by the caller, and be at least \fBstrlen(s) + 1\fP long. .SH EXAMPLE .ta 3n 6n 9n 12n 15n 18n 21n .nf .if n \{\ .ft B \} .if t \{\ .ft CR \} #include "mut.h" void cmp() { char \(**s = "PWET", t[5]; downstr(s, t); if (strcmp(t, "pwet")) { fprintf(stderr, "Downstr sucks, man"); EXIT(); } } .ft R .fi .SH SEE ALSO .BR mbk (1), .BR upstr (3). .so buster/alliance/alc_bug_report.1.en.gz