<?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[Char *]]></title><description><![CDATA[<p>Guten Abend,</p>
<p>Erstens mal an die Mods ^^''<br />
Koennt ihr die email posten, unter der ich registriert bin?<br />
Hab das Passwort vergessen, und auch die registrierte email adresse.<br />
Nick: GreenGhost<br />
Ich hoffe jetzt mal, dass ich noch geregt bin.</p>
<p>Weiter im Text...<br />
Ich hab so gestern das Tut von PostgreSQL (libpq) gelesen.<br />
Dies is ne C Library.</p>
<p>und dann das:</p>
<pre><code class="language-cpp">char *dbName;
dbName = &quot;template1&quot;;
</code></pre>
<p>Quelle: <a href="http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq-example.html" rel="nofollow">http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq-example.html</a></p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> &quot;Hab ich im C kurs gepennt?&quot;, fragte ich mich.</p>
<p>Also:<br />
<em>char</em> = 1 Zeichen, 8 bit (1 byte)<br />
<em>char[n]</em> = n Zeichen, n*8 bit (n byte)<br />
*char ** = ??? ist ja wohl nicht unbegrenzt!</p>
<pre><code class="language-cpp">PGconn *PQconnectdb(const char *conninfo);
</code></pre>
<p>Quelle: <a href="http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq.html#LIBPQ-CONNECT" rel="nofollow">http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq.html#LIBPQ-CONNECT</a></p>
<p>10 Argumente in *const char <em>conninfo</em>, dass kann ja ned sein.<br />
Da muss ich wohl was ueberlesen haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Kann mir jemand schnell auf die spruenge helfen mit *char ** (im C)?</p>
<p>Danke,<br />
GG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/126610/char</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 19:56:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/126610.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Nov 2005 18:02:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Char * on Wed, 16 Nov 2005 18:02:08 GMT]]></title><description><![CDATA[<p>Guten Abend,</p>
<p>Erstens mal an die Mods ^^''<br />
Koennt ihr die email posten, unter der ich registriert bin?<br />
Hab das Passwort vergessen, und auch die registrierte email adresse.<br />
Nick: GreenGhost<br />
Ich hoffe jetzt mal, dass ich noch geregt bin.</p>
<p>Weiter im Text...<br />
Ich hab so gestern das Tut von PostgreSQL (libpq) gelesen.<br />
Dies is ne C Library.</p>
<p>und dann das:</p>
<pre><code class="language-cpp">char *dbName;
dbName = &quot;template1&quot;;
</code></pre>
<p>Quelle: <a href="http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq-example.html" rel="nofollow">http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq-example.html</a></p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> &quot;Hab ich im C kurs gepennt?&quot;, fragte ich mich.</p>
<p>Also:<br />
<em>char</em> = 1 Zeichen, 8 bit (1 byte)<br />
<em>char[n]</em> = n Zeichen, n*8 bit (n byte)<br />
*char ** = ??? ist ja wohl nicht unbegrenzt!</p>
<pre><code class="language-cpp">PGconn *PQconnectdb(const char *conninfo);
</code></pre>
<p>Quelle: <a href="http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq.html#LIBPQ-CONNECT" rel="nofollow">http://www.postgresql.org/files/documentation/books/pghandbuch/html/libpq.html#LIBPQ-CONNECT</a></p>
<p>10 Argumente in *const char <em>conninfo</em>, dass kann ja ned sein.<br />
Da muss ich wohl was ueberlesen haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Kann mir jemand schnell auf die spruenge helfen mit *char ** (im C)?</p>
<p>Danke,<br />
GG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/919404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/919404</guid><dc:creator><![CDATA[GreenGhost_password?]]></dc:creator><pubDate>Wed, 16 Nov 2005 18:02:08 GMT</pubDate></item><item><title><![CDATA[Reply to Char * on Wed, 16 Nov 2005 18:11:53 GMT]]></title><description><![CDATA[<p>GreenGhost_password? schrieb:</p>
<blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> &quot;Hab ich im C kurs gepennt?&quot;, fragte ich mich.</p>
</blockquote>
<p>Anscheinend schon... Das ist ein char-Pointer der dann normal auf den Anfang eines Null-terminierten Speicherbereichs zeigt (das muss aber nicht so sein)</p>
<p>Btw... C Library... C++ Forum? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/919415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/919415</guid><dc:creator><![CDATA[FireFlow]]></dc:creator><pubDate>Wed, 16 Nov 2005 18:11:53 GMT</pubDate></item><item><title><![CDATA[Reply to Char * on Wed, 16 Nov 2005 21:30:38 GMT]]></title><description><![CDATA[<p>FireFlow schrieb:</p>
<blockquote>
<p>Btw... C Library... C++ Forum? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Gruß</p>
</blockquote>
<p>Jo, ich will die C lib in eine C++ classe verfrachten.<br />
Dann hat man eine klasse/objekt.<br />
z.B.</p>
<pre><code class="language-cpp">pgserver mydb;
mydb.set(&quot;localhost&quot;,&quot;user&quot;,&quot;pw&quot;,...);
if(mydb.connect()){
 ...
}
mydb.close();
</code></pre>
<p>sowas in der art will ich fuer mich machen.<br />
danach hab ich eine grundlage fuer spaetere DB programme.</p>
<p>Und ja, es gibt fuer postgrsql eine c++ lib.<br />
Leider ist die ned cross bzw OS unabhaengig.</p>
<p>Gruss,<br />
GG</p>
<p>PS:<br />
Kann jemand von den Mods noch wegen meines PW problem schauen. thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/919585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/919585</guid><dc:creator><![CDATA[GreenGhost_unlogin]]></dc:creator><pubDate>Wed, 16 Nov 2005 21:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to Char * on Thu, 17 Nov 2005 10:49:03 GMT]]></title><description><![CDATA[<p>Versucht das mit dem Passwort lieber im <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-39.html" rel="nofollow">Forentechnik</a> Forum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/919896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/919896</guid><dc:creator><![CDATA[C Newbie@!Home]]></dc:creator><pubDate>Thu, 17 Nov 2005 10:49:03 GMT</pubDate></item></channel></rss>