From: Joel Rosdahl Date: Wed, 2 Jun 2010 21:29:11 +0000 (+0200) Subject: Improve documentation of get_extension() X-Git-Tag: v3.0~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd82adfd501a19f8b936b1b91a2eb3d7a9fee6a1;p=thirdparty%2Fccache.git Improve documentation of get_extension() --- diff --git a/util.c b/util.c index 1464f59fa..37fe40107 100644 --- a/util.c +++ b/util.c @@ -627,8 +627,9 @@ char *dirname(char *s) } /* - * Return the file extension of a path as a pointer into path. If path has no - * file extension, the empty string is returned. + * Return the file extension (including the dot) of a path as a pointer into + * path. If path has no file extension, the empty string and the end of path is + * returned. */ const char *get_extension(const char *path) {