- add libbb function str_tolower to convert a string to lowercase.

- shrink wget a bit
This commit is contained in:
Bernhard Reutner-Fischer
2007-04-10 09:37:29 +00:00
parent 3f3aa2a57d
commit 7e8a53a335
3 changed files with 63 additions and 56 deletions

13
libbb/str_tolower.c Normal file
View File

@@ -0,0 +1,13 @@
/* vi set: sw=4 ts=4: */
/* Convert string str to lowercase, return str.
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "libbb.h"
char* str_tolower(char *str)
{
char *c;
for (c = str; *c; ++c)
*c = tolower(*c);
return str;
}