<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to striptrailingext</title><link>https://sourceforge.net/p/pathlib/wiki/striptrailingext/</link><description>Recent changes to striptrailingext</description><atom:link href="https://sourceforge.net/p/pathlib/wiki/striptrailingext/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 14 Apr 2013 16:31:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pathlib/wiki/striptrailingext/feed" rel="self" type="application/rss+xml"/><item><title>striptrailingext modified by Mark Hobley</title><link>https://sourceforge.net/p/pathlib/wiki/striptrailingext/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,6 @@
 Synopsis

-char * striptrailingext(char *);
+char * striptrailingext(char *pathname);

 Strips trailing filename extension leaving:

@@ -8,8 +8,10 @@

 Return values

-Returns address of base filename (or NULL on error).
+Returns address of base filename (or NULL if no file extension was provided or an error occurs).

 Memory allocation

 This function allocates memory (at the returned address) to hold the revised filename. This will need be deallocated by the calling function after use.
+
+Note that if the provided pathname does not contain a file extension, then no memory is allocated and a NULL pointer is returned.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Hobley</dc:creator><pubDate>Sun, 14 Apr 2013 16:31:30 -0000</pubDate><guid>https://sourceforge.net737516448d965f98c2fc3f1184ab66e4c142c861</guid></item><item><title>striptrailingext modified by Mark Hobley</title><link>https://sourceforge.net/p/pathlib/wiki/striptrailingext/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Synopsis&lt;/p&gt;
&lt;p&gt;char * striptrailingext(char *);&lt;/p&gt;
&lt;p&gt;Strips trailing filename extension leaving:&lt;/p&gt;
&lt;p&gt;./a.out becomes: ./a&lt;/p&gt;
&lt;p&gt;Return values&lt;/p&gt;
&lt;p&gt;Returns address of base filename (or NULL on error).&lt;/p&gt;
&lt;p&gt;Memory allocation&lt;/p&gt;
&lt;p&gt;This function allocates memory (at the returned address) to hold the revised filename. This will need be deallocated by the calling function after use.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Hobley</dc:creator><pubDate>Sun, 14 Apr 2013 16:23:33 -0000</pubDate><guid>https://sourceforge.net27b1ac45e1193a905114caca136a0e55d4593544</guid></item></channel></rss>