Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_unix/sys/src/libhttpd/lower.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <bin.h>
4
#include <httpd.h>
5
 
6
char*
7
hlower(char *p)
8
{
9
	char c;
10
	char *x;
11
 
12
	if(p == nil)
13
		return p;
14
 
15
	for(x = p; c = *x; x++)
16
		if(c >= 'A' && c <= 'Z')
17
			*x -= 'A' - 'a';
18
	return p;
19
}