/* 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 */
/*