Re: [PATCH v2 1/2] Introduce the function strip_path_suffix()
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Feb 19, 2009, 20:26 UTC
- Message-ID
- <499DC08F.3030106@kdbg.org>
- In-Reply-To
- <f6344cbba22e049806796f4920e229fb2e539d5c.1235070304u.git.johannes.schindelin@gmx.de>
Johannes Schindelin schrieb:
> +/* 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)
Looks good otherwise.
-- Hannes