From dd82adfd501a19f8b936b1b91a2eb3d7a9fee6a1 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 2 Jun 2010 23:29:11 +0200 Subject: [PATCH] Improve documentation of get_extension() --- util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.47.3