add libhttpd
This commit is contained in:
parent
b6afd33e2f
commit
9df487d720
19 changed files with 2722 additions and 0 deletions
19
src/libhttpd/lower.c
Normal file
19
src/libhttpd/lower.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue