<?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[wie nutze ich strncopy]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich möchte mit C++ feststellen, ob ein bestimmtes Zeichen an einer bestimmten Position in einem String vorhanden ist. Kann mir jemand einen Tipp geben?</p>
<p>Danke im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147122/wie-nutze-ich-strncopy</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 22:38:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147122.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 May 2006 09:49:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wie nutze ich strncopy on Sun, 14 May 2006 09:49:14 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich möchte mit C++ feststellen, ob ein bestimmtes Zeichen an einer bestimmten Position in einem String vorhanden ist. Kann mir jemand einen Tipp geben?</p>
<p>Danke im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1057444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057444</guid><dc:creator><![CDATA[xthing]]></dc:creator><pubDate>Sun, 14 May 2006 09:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to wie nutze ich strncopy on Sun, 14 May 2006 09:51:20 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Benutze doch einfach std::string.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1057446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057446</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 14 May 2006 09:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to wie nutze ich strncopy on Sun, 14 May 2006 09:53:11 GMT]]></title><description><![CDATA[<p>1. mahct man das nicht mehr mit strXXX (das is aus c-zeiten)<br />
heute gibt es std::string:</p>
<pre><code class="language-cpp">#include &lt;string&gt;

std::string text = &quot;blablabla&quot;;

//feststellen, ob an bestimmter stelle best. zeichen steht:

// ist 4. Buchstabe ein c?
if(text[3] == 'c')
// is drin
else
// nicht drin

////////////
// feststellen, ob zeichen irgendwo vorkommt:
size_t p = text.find('c'); bzw. size_t p = text.find(&quot;der zu suchende text&quot;);
if(p != text.npos)
// is drin, an stelle p
else
// is nich drin
</code></pre>
<p>hoffe, du hast alles verstanden,</p>
<p>Gruß, Maxi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1057448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1057448</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Sun, 14 May 2006 09:53:11 GMT</pubDate></item></channel></rss>