Translations of this page?:

c_str

Syntax:

    #include <string>
    const charT* c_str() const;

c_str()関数は、C言語文字列の先頭ポインタを返します。返される文字列は、NULL終端です。

注意することは、c_str()で返されるポインタは、const型で、文字データは変更することができません。 その上、このポインタに対して、free か delete を呼ぶ必要はありません。

Related Topics: String_operators, data

 
• • • SitemapRecent changesRSScc