<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dateinamen ohne Dateiendung]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich bräuchte ne Funktion, welche mir den Stamm-Dateinamen ohne die Dateiendung zurückliefert. Also ich hab z.B. die Datei 'hallo.xyz' und ich bräuchte eine Funktion, die mir dann eben nur 'hallo' zurückliefert.<br />
Wäre euch echt sehr dankbar wenn ihr mir da weiterhelfen könntet. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Einen schönen Gruß<br />
CMan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/110413/dateinamen-ohne-dateiendung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 22:11:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/110413.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 May 2005 12:02:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 12:02:11 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich bräuchte ne Funktion, welche mir den Stamm-Dateinamen ohne die Dateiendung zurückliefert. Also ich hab z.B. die Datei 'hallo.xyz' und ich bräuchte eine Funktion, die mir dann eben nur 'hallo' zurückliefert.<br />
Wäre euch echt sehr dankbar wenn ihr mir da weiterhelfen könntet. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Einen schönen Gruß<br />
CMan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792313</guid><dc:creator><![CDATA[CMan]]></dc:creator><pubDate>Fri, 20 May 2005 12:02:11 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 12:08:23 GMT]]></title><description><![CDATA[<p>hat nix mit winapi zu tun, wirst ja wohl selber was schreiben können was alles bis zum letzten vorkommenden punkt kopiert....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792318</guid><dc:creator><![CDATA[loki1985]]></dc:creator><pubDate>Fri, 20 May 2005 12:08:23 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 12:09:52 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>also wenn du den Dateinamen schon in nem String hast (davon gehe ich aus, hast nichts weiter gesagt) zerpfluecke doch den Sting bei jedem Punkt und alles nach dem letzen Punkt laesst du weg, den Rest fuegst du wieder mit Punkten zusammen.</p>
<p>der Guenther</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792319</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792319</guid><dc:creator><![CDATA[Guenther]]></dc:creator><pubDate>Fri, 20 May 2005 12:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 13:49:46 GMT]]></title><description><![CDATA[<p>Warum so umständlich?</p>
<p>ein simples</p>
<pre><code class="language-cpp">DateiName[(int)(strrchr( DateiName, '.' ) - DateiName] = '\0';
</code></pre>
<p>tut schon, was er will.</p>
<p>Da sind die vorderen Punkte völlig uninteressant.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792432</guid><dc:creator><![CDATA[String-Kenner]]></dc:creator><pubDate>Fri, 20 May 2005 13:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 15:58:40 GMT]]></title><description><![CDATA[<p>Dann doch lieber gleich so:</p>
<pre><code class="language-cpp">*(strrchr(szFileName, '.')) = 0; // bzw. '\0' wenn dir das besser gefällt
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/792560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792560</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 20 May 2005 15:58:40 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Fri, 20 May 2005 22:56:48 GMT]]></title><description><![CDATA[<p>Es gibt auch eine Funktion</p>
<pre><code class="language-cpp">void _splitpath(
   const char *path,
   char *drive,
   char *dir,
   char *fname,
   char *ext 
);
</code></pre>
<p>die dir alle möglichen Bestandteile deines Dateinamens einzeln zurückgibt.<br />
Für näheres in die MSDN schauen. Nur soviel: unbenutzte Parameter werden mit NULL initialisiert und man muss &lt;stdlib.h&gt; einbinden.</p>
<p>Viel Spaß,</p>
<p>oli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792728</guid><dc:creator><![CDATA[der oli]]></dc:creator><pubDate>Fri, 20 May 2005 22:56:48 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Sat, 21 May 2005 06:38:21 GMT]]></title><description><![CDATA[<p><a href="http://www.cherea.de/bitbucket/shellpath/doc/index.html" rel="nofollow">CPath</a>(mystring).RemoveExtension()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792758</guid><dc:creator><![CDATA[peterchen]]></dc:creator><pubDate>Sat, 21 May 2005 06:38:21 GMT</pubDate></item><item><title><![CDATA[Reply to Dateinamen ohne Dateiendung on Sat, 21 May 2005 08:05:14 GMT]]></title><description><![CDATA[<p>Na, wenn wir hier jetzt &quot;wer kennt mehr Funktionen&quot; spielen, hab ich auch noch eine:</p>
<p><a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/pathremoveextension.asp" rel="nofollow">void PathRemoveExtension(LPTSTR pszPath)</a></p>
<p>Entfernt die Dateiendung, sofern eine vorhanden ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/792776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/792776</guid><dc:creator><![CDATA[MSDN]]></dc:creator><pubDate>Sat, 21 May 2005 08:05:14 GMT</pubDate></item></channel></rss>