Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DOWNSTR(3)		     MBK UTILITY FUNCTIONS		    DOWNSTR(3)

NAME
       downstr - convert a string to lower case

SYNOPSYS
       #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).

ASIM/LIP6			October	1, 1997			    DOWNSTR(3)

NAME | SYNOPSYS | PARAMETERS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=downstr&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help