add libhttpd

This commit is contained in:
rsc 2003-11-23 18:19:35 +00:00
parent b6afd33e2f
commit 9df487d720
19 changed files with 2722 additions and 0 deletions

19
src/libhttpd/lower.c Normal file
View file

@ -0,0 +1,19 @@
#include <u.h>
#include <libc.h>
#include <bin.h>
#include <httpd.h>
char*
hlower(char *p)
{
char c;
char *x;
if(p == nil)
return p;
for(x = p; c = *x; x++)
if(c >= 'A' && c <= 'Z')
*x -= 'A' - 'a';
return p;
}