Action()
{
char fullpath[] = "Linux was first developed for 386/486-based pcs.";
int num;
num = strspn(fullpath, "Linux w");
lr_output_message("%d", num);
}
Action()
{
char fullpath[] = "Linux";
int num;
num = strspn(fullpath, "Linux w");
lr_output_message("%d", num);
}
不好描述。
第二个参数必须是第一个参数首先出现的,然后返回长度。