X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstr.c;h=eaa9cdff9fd6f6eac8871ffaa964899900e67fee;hb=bcf41af107e8dffb506a506f576c6535d1b3bde7;hp=081ffea5a74d36290c05450b3d5e52e04cd8fa90;hpb=6ac27d1da3fdebee275343fcf7b6625fc1f1da79;p=pspp diff --git a/src/str.c b/src/str.c index 081ffea5a7..eaa9cdff9f 100644 --- a/src/str.c +++ b/src/str.c @@ -1,5 +1,5 @@ /* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. Written by Ben Pfaff . This program is free software; you can redistribute it and/or @@ -270,6 +270,14 @@ str_uppercase (char *s) for (; *s != '\0'; s++) *s = toupper ((unsigned char) *s); } + +/* Converts each character in S to lowercase. */ +void +str_lowercase (char *s) +{ + for (; *s != '\0'; s++) + *s = tolower ((unsigned char) *s); +} /* Initializes ST with initial contents S. */ void