(ANSI Standard)
#include <string.h> i = strspn( s, set );
"strspn" returns the number of characters from the string "set" that appear at the beginning of the string pointed to by "s". For example,
j = strspn(s," ");
determines how many leading blanks are at the start of "s".
Copyright © 1996, Thinkage Ltd.