From: Johannes Sixt Date: Thu, 19 Feb 2009 20:26:55 GMT Subject: Re: [PATCH v2 1/2] Introduce the function strip_path_suffix() Message-ID: <499DC08F.3030106@kdbg.org> In-Reply-To: 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