X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..04024c2cafab56ea76a9a2b35097584d6db98c06:/lib/kvp.h diff --git a/lib/kvp.h b/lib/kvp.h index db6d177..0daa9d2 100644 --- a/lib/kvp.h +++ b/lib/kvp.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004, 2005 Richard Kettlewell + * Copyright (C) 2004, 2005, 2007, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,9 +52,11 @@ int urlencode(struct sink *sink, const char *s, size_t n); /* url-encode the @n@ bytes at @s@, writing to @sink@. Return 0 on * success, -1 on error. */ -const char *urlencodestring(const char *s); +char *urlencodestring(const char *s); /* return the url-encoded form of @s@ */ +char *urldecodestring(const char *s, size_t ns); + #endif /* KVP_H */ /*