文字列において指定した文字集合の幅を取得
res = strspn(str1,str2)
文字列または文字列の行列
文字列または文字列の行列
行列.
res = strspn(str1,str2) は,
str2に含まれる文字のみからなる
str1の先頭部分の長さを返します.
str1 はstr2と次元が同じで,もしくは,str1は文字列である必要があります.
i = strspn("129th","1234567890"); printf ("The length of initial number is %d.\n",i); i = strspn(["129th","130th"],["1234567890","130t"]) | ![]() | ![]() |