diff options
Diffstat (limited to 'src/libhttpd/lower.c')
| -rw-r--r-- | src/libhttpd/lower.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libhttpd/lower.c b/src/libhttpd/lower.c new file mode 100644 index 00000000..40f49d51 --- /dev/null +++ b/src/libhttpd/lower.c @@ -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; +} |
