blob: a2a5ef737a6aab8d8e101a144a1d2abae6cae1e0 [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <assert.h>
#include <string.h>
// Example of the correct usage of strspn().
int main()
{
char *str = "A string";
size_t result;
result = strspn(str, str);
assert(result = 8);
return 0;
}