Home | History | Annotate | Line # | Download | only in libhack
strcasecmp.c revision 1.1
      1 /*	$NetBSD: strcasecmp.c,v 1.1 2019/07/28 10:21:18 martin Exp $	*/
      2 
      3 /*
      4  * Written by Martin Husemann <martin (at) NetBSD.org>
      5  * Public domain.
      6  */
      7 
      8 #include <strings.h>
      9 
     10 /*
     11  * Cheap and dirty strcasecmp() - implements just enough
     12  * for our libcurses in crunched environments: since we
     13  * know all compared strings are fixed, uppercase, and plain ASCII,
     14  * just use strcmp()
     15  */
     16 int
     17 strcasecmp(const char *s1, const char *s2)
     18 {
     19 	return strcmp(s1, s2);
     20 }
     21