Remove str_util.{c,h}
[oweals/opkg-lede.git] / libopkg / user.c
index e04f04ded14a52942c3ecd5696ba20c37c6576c3..ee54eb672c96b7fd34f6237ffd2444c3dd42cb5b 100644 (file)
 #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;
 }