名前空間
変種
操作

strlen

提供: cppreference.com
< cpp‎ | string‎ | byte
2012年5月1日 (火) 04:06時点におけるP12 (トーク | 投稿記録)による版

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)


文法:

    #include <cstring>
    size_t strlen( char *文字列 );

strlen()関数は、指定されて文字列の長さを返します。NULL終端文字に到達するまでの文字数から算出します。指定する文字列はNULLであってはなりません。

関連トピック: memcpy, strchr, strcmp, strncmp