From 0c1ff8a2581474b0409b62fdbf5e7be93efd9d89 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Fri, 6 Jun 2003 21:08:54 +0000 Subject: [PATCH] Cleared up parse_field() synopsis. --- trunk/darkhttpd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/trunk/darkhttpd.c b/trunk/darkhttpd.c index 103a6df..1f1c8da 100644 --- a/trunk/darkhttpd.c +++ b/trunk/darkhttpd.c @@ -850,10 +850,12 @@ static void default_reply(struct connection *conn, /* --------------------------------------------------------------------------- - * Parses a single HTTP request field. If the specified field doesn't exist, - * returns NULL. Otherwise, you need to remember to deallocate the result. + * Parses a single HTTP request field. Returns string from end of [field] to + * first \r, \n or end of request string. Returns NULL if [field] can't be + * matched. * - * eg. "Referer: moo" with field="Referer: " returns "moo" + * You need to remember to deallocate the result. + * example: parse_field(conn, "Referer: "); */ static char *parse_field(const struct connection *conn, const char *field) {