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

  
 
  

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

NAME
     upstr - 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).

ASIM/LIP6			 October 1, 1997			UPSTR(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=upstr&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help