ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 0c5bb625d4fcd38a163afd5a327fe96e40c3be5f
parent 1a4cc68ab021aa83c70bc899561f29d3bae168c5
Author: ByteProject <stefan.vogt@byteproject.net>
Date:   Sun, 25 Dec 2011 11:30:46 +0100

now behaving exactly as PHP's strtolower()

Diffstat:
Mansilove/strtolower.c | 3++-
Mansilove/strtolower.h | 5+++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ansilove/strtolower.c b/ansilove/strtolower.c @@ -15,11 +15,12 @@ #include "strtolower.h" #endif -void strtolower(char str[]) +char *strtolower(char *str) { char *p; for (p = str; *p != '\0'; ++p) { *p = tolower(*p); } + return str; } diff --git a/ansilove/strtolower.h b/ansilove/strtolower.h @@ -20,7 +20,8 @@ #ifndef strtolower_h #define strtolower_h -// In-place modification of a string to be all lower case. -void strtolower(char str[]); +// This is a port of the PHP function strtolower(), providing +// in-place modification of a string to be all lower case. +char *strtolower(char *str); #endif