X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..d22b8a59995829bc14b4490b9bddd95346e0585d:/lib/kvp.h diff --git a/lib/kvp.h b/lib/kvp.h index 52d9e49..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 */ /* @@ -63,4 +65,3 @@ c-basic-offset:2 comment-column:40 End: */ -/* arch-tag:edb5787b529ef7b694efa4ce2c44ff3f */