-/*
- * mono-uri.c: Simple routine used to escape uris.
+/**
+ * \file
+ * Simple routine used to escape uris.
*
* Author:
* Miguel de Icaza (miguel@novell.com)
while ((c = (guchar) *string) != 0){
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '-' && c <= ':') || (c >= '&' && c <= '*'))
g_string_append_c (str, c);
- else if (c == '!' || c == '=' || c == '?' || c == '?' || c == '_' || c == '_' || c == '~')
+ else if (c == '!' || c == '=' || c == '?' || c == '_' || c == '~')
g_string_append_c (str, c);
else {
g_string_append_c (str, '%');
#if TEST
int main ()
{
- char *s = malloc (256);
+ char *s = g_malloc (256);
int i = 0;
s [255] = 0;