Standard library header <string.h>
From cppreference.net
このヘッダーは null終端バイト文字列 を扱う関数を提供します。
Macros |
||
|
実装定義のヌルポインタ定数
(マクロ定数) |
||
型 |
||
|
sizeof
演算子によって返される符号なし整数型
(typedef) |
||
関数 |
||
文字列操作 |
||
|
(C11)
|
文字列を別の文字列にコピーする
(関数) |
|
|
(C11)
|
指定された文字数をある文字列から別の文字列にコピーする
(関数) |
|
|
(C11)
|
2つの文字列を連結する
(関数) |
|
|
(C11)
|
2つの文字列の特定の文字数を連結する
(関数) |
|
|
strcmpがstrcollと同じ結果を生成するように文字列を変換する
(関数) |
||
|
(C23)
|
文字列のコピーを割り当てる
(関数) |
|
|
(C23)
|
指定されたサイズの文字列のコピーを割り当てる
(関数) |
|
文字列検査 |
||
|
(C11)
|
指定された文字列の長さを返す
(関数) |
|
|
二つの文字列を比較する
(関数) |
||
|
二つの文字列の特定の文字数を比較する
(関数) |
||
|
現在のロケールに従って2つの文字列を比較する
(関数) |
||
|
文字の最初の出現を検索
(関数) |
||
|
文字の最後の出現を検索する
(関数) |
||
|
別のバイト文字列内に存在する文字のみで構成される
最大の先頭セグメントの長さを返す (関数) |
||
|
別のバイト文字列に見つからない文字のみで構成される
最大の先頭セグメントの長さを返す (関数) |
||
|
ある文字列の中から、別の文字列に含まれる任意の文字が最初に現れる位置を検索する
(関数) |
||
|
文字列中の部分文字列の最初の出現を検索する
(関数) |
||
|
(C11)
|
バイト文字列内の次のトークンを検索する
(関数) |
|
文字配列操作 |
||
|
配列から最初に出現する文字を検索します
(関数) |
||
|
二つのバッファを比較する
(関数) |
||
|
(C23)
(C11)
|
バッファを文字で埋める
(関数) |
|
|
(C11)
|
バッファを別のバッファにコピーする
(関数) |
|
|
(C11)
|
バッファを別のバッファに移動する
(関数) |
|
|
(C23)
|
指定された区切り文字の後に停止しながら、一方のバッファを他方にコピーする
(関数) |
|
その他 |
||
|
(C11)
(C11)
|
指定されたエラーコードのテキスト版を返す
(関数) |
|
概要
#define __STDC_VERSION_STRING_H__ 202311L #define NULL /* 説明を参照 */ typedef /* 説明を参照 */ size_t; void* memcpy(void* restrict s1, const void* restrict s2, size_t n); void* memccpy(void* restrict s1, const void* restrict s2, int c, size_t n); void* memmove(void* s1, const void* s2, size_t n); char* strcpy(char* restrict s1, const char* restrict s2); char* strncpy(char* restrict s1, const char* restrict s2, size_t n); char* strdup(const char* s); char* strndup(const char* s, size_t n); char* strcat(char* restrict s1, const char* restrict s2); char* strncat(char* restrict s1, const char* restrict s2, size_t n); int memcmp(const void* s1, const void* s2, size_t n); int strcmp(const char* s1, const char* s2); int strcoll(const char* s1, const char* s2); int strncmp(const char* s1, const char* s2, size_t n); size_t strxfrm(char* restrict s1, const char* restrict s2, size_t n); /*QVoid*/* memchr(/*QVoid*/* s, int c, size_t n); /*QChar*/* strchr(/*QChar*/* s, int c); size_t strcspn(const char* s1, const char* s2); /*QChar*/* strpbrk(/*QChar*/* s1, const char* s2); /*QChar*/* strrchr(/*QChar*/* s, int c); size_t strspn(const char* s1, const char* s2); /*QChar*/* strstr(/*QChar*/* s1, const char* s2); char* strtok(char* restrict s1, const char* restrict s2); void* memset(void* s, int c, size_t n); void* memset_explicit(void* s, int c, size_t n); char* strerror(int errnum); size_t strlen(const char* s); size_t strnlen(const char* s, size_t n);
実装が
__STDC_LIB_EXT1__
を定義しており、かつユーザーコードが
__STDC_WANT_LIB_EXT1__
を
<string.h>
のインクルード前に定義している場合のみ:
#ifdef __STDC_WANT_LIB_EXT1__ tyepdef /* 説明を参照 */ errno_t; tyepdef /* 説明を参照 */ rsize_t; errno_t memcpy_s(void* restrict s1, rsize_t s1max, const void* restrict s2, rsize_t n); errno_t memmove_s(void* s1, rsize_t s1max, const void* s2, rsize_t n); errno_t strcpy_s(char* restrict s1, rsize_t s1max, const char* restrict s2); errno_t strncpy_s(char* restrict s1, rsize_t s1max, const char* restrict s2, rsize_t n); errno_t strcat_s(char* restrict s1, rsize_t s1max, const char* restrict s2); errno_t strncat_s(char* restrict s1, rsize_t s1max, const char* restrict s2, rsize_t n); char* strtok_s(char* restrict s1, rsize_t* restrict s1max, const char* restrict s2, char** restrict ptr); errno_t memset_s(void* s, rsize_t smax, int c, rsize_t n) errno_t strerror_s(char* s, rsize_t maxsize, errno_t errnum); size_t strerrorlen_s(errno_t errnum); size_t strnlen_s(const char* s, size_t maxsize); #endif