diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-25 20:42:53 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-25 20:42:53 (EST) |
commit | d2fc8c73ad1cff0e8b57330caa3c997a17059f2b (patch) | |
tree | da202a65f58455cbb2a2a9c484627502c5a61d9b /libopkg/user.c | |
parent | 9ba412631e57deb365d5e7fb8b8c2fbf9bfe27b0 (diff) |
Remove str_util.{c,h}
git-svn-id: http://opkg.googlecode.com/svn/trunk@383 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/user.c')
-rw-r--r-- | libopkg/user.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libopkg/user.c b/libopkg/user.c index e04f04d..ee54eb6 100644 --- a/libopkg/user.c +++ b/libopkg/user.c @@ -18,11 +18,13 @@ #include <stdio.h> #include <stdarg.h> #include <unistd.h> +#include <ctype.h> + #include "file_util.h" -#include "str_util.h" char *get_user_response(const char *format, ...) { + int i; va_list ap; char *response; @@ -37,7 +39,8 @@ char *get_user_response(const char *format, ...) if (response == NULL) return NULL; - str_tolower(response); + for (i=0; response[i]; i++) + response[i] = tolower(response[i]); return response; } |