strip_path_suffix(): fix comment

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Sixt
2009-02-19 21:40:10 +01:00
committed by Johannes Schindelin
parent 047f0f01f2
commit fc8f39c0da

6
path.c
View File

@@ -466,7 +466,11 @@ static inline int chomp_trailing_dir_sep(const char *path, int len)
return len;
}
/* sets prefix if the suffix matches */
/*
* If path ends with suffix (complete path components), returns the
* part before suffix (sans trailing directory separators).
* Otherwise returns NULL.
*/
char *strip_path_suffix(const char *path, const char *suffix)
{
int path_len = strlen(path), suffix_len = strlen(suffix);