statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

strtolower.c (409B)


      1 /*
      2  * StatZone 1.0.4
      3  * Copyright (c) 2012-2020, Frederic Cambus
      4  * https://www.statdns.com
      5  *
      6  * Created: 2012-02-13
      7  * Last Updated: 2019-01-03
      8  *
      9  * StatZone is released under the BSD 2-Clause license
     10  * See LICENSE file for details.
     11  */
     12 
     13 #include <ctype.h>
     14 #include "strtolower.h"
     15 
     16 char *
     17 strtolower(char *str)
     18 {
     19 	char *p = str;
     20 
     21 	while (*p) {
     22 		*p = tolower((unsigned char)*p);
     23 		p++;
     24 	}
     25 
     26 	return str;
     27 }