文法:
#include <cstring> size_t strcspn( const char *文字列1, const char *文字列2 );
strcspn()関数は文字列1の中から、文字列2に含まれる文字のうちのいずれかの文字を見つけ、最初に見つかった位置のインデックスを返します。
文字列1
文字列2
関連トピック: strpbrk, strrchr, strstr, strtok