X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/5d4e3f65125a1e67702b7fbd4096d5e2fd3ec798..268cd12f990b95d82d00e639288563c6c6ce9452:/src/util.c diff --git a/src/util.c b/src/util.c index 86e44b8..d040ee4 100644 --- a/src/util.c +++ b/src/util.c @@ -20,7 +20,7 @@ * USA. */ -#include "config.h" +#include #include #include #include @@ -407,6 +407,31 @@ gob_strdown (char *str) return str; } +int +gob_strcasecmp(const char *s1, const char *s2) +{ + return g_ascii_strcasecmp(s1, s2); +} + +char * +gob_str_delete_quotes(char *str) +{ + char *p, *i; + p=i=str; + while(*p!='\0') + { + if(*p=='\"') + { + p++; + continue; + } + *i=*p; + p++; i++; + } + *i=*p; + return str; +} + char * make_me_type (const char *type, const char *alt) {