<?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[Gegenstück zu strstr() gesucht, welches von hinten sucht ?]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>kennt jemand von euch zufällig ein Gegenstück zu</p>
<pre><code class="language-cpp">char * strstr(const char *s1, const char *s2)
</code></pre>
<p>welches von hinten sucht ?</p>
<p>Vielleicht kann ja einer helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196194/gegenstück-zu-strstr-gesucht-welches-von-hinten-sucht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 30 Sep 2026 10:07:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196194.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Oct 2007 14:27:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Fri, 26 Oct 2007 14:27:33 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>kennt jemand von euch zufällig ein Gegenstück zu</p>
<pre><code class="language-cpp">char * strstr(const char *s1, const char *s2)
</code></pre>
<p>welches von hinten sucht ?</p>
<p>Vielleicht kann ja einer helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392579</guid><dc:creator><![CDATA[Tantor]]></dc:creator><pubDate>Fri, 26 Oct 2007 14:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Fri, 26 Oct 2007 14:32:51 GMT]]></title><description><![CDATA[<p>In C++ macht man das anders ...</p>
<pre><code class="language-cpp">void rsubstr(std::string const&amp; src, std::string const&amp; search, std::string&amp; dest)
{
    const std::size_t pos(src.rfind(search));
    if (pos == std::string::npos) throw std::runtime_error(&quot;string not found&quot;);
    dest = src.substr(pos);
}
</code></pre>
<p>... ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392586</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 26 Oct 2007 14:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Fri, 26 Oct 2007 14:34:57 GMT]]></title><description><![CDATA[<p>Eine Gegenfunktion gibts da glaub ich nicht</p>
<p>Lass in einer Schleife alles suchen bis nichts mehr kommt und dann nimmst du das zuletzt gefundene</p>
<pre><code class="language-cpp">char z1[]=&quot;Hallo Wellt Gruessll Gottll wellnn dull illhn slliehst&quot;;
char z2[]=&quot;ll&quot;;

void *Pointer;
do
{
    Pointer=NULL;
    Pointer=strstr(z1,z2);
} while(Pointer);
</code></pre>
<p>Dann ist Pointer der Pointer auf des letzte mal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392587</guid><dc:creator><![CDATA[Trurholm]]></dc:creator><pubDate>Fri, 26 Oct 2007 14:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Fri, 26 Oct 2007 14:38:42 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char sz1[] = &quot;Hallo Wellt&quot;;
char sz2[] = &quot;ll&quot;;

char* src = strstr(sz1, sz2);
for (;src;src = strstr(sz1, sz2));
</code></pre>
<p>aber das is kein C++ -.-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392589</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 26 Oct 2007 14:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Fri, 26 Oct 2007 17:28:30 GMT]]></title><description><![CDATA[<p>Leider beide falsch. Nach der Schleife habt ihr jeweils NULL in eurem Zeiger stehen...<br />
Fazit: nehmt C++ !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392686</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Fri, 26 Oct 2007 17:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Gegenstück zu strstr() gesucht, welches von hinten sucht ? on Sat, 27 Oct 2007 07:35:08 GMT]]></title><description><![CDATA[<p>hmm stimmt ... naja oben steht ne einfache C++-Lösung von mir <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1392841</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1392841</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 27 Oct 2007 07:35:08 GMT</pubDate></item></channel></rss>