strspnp()

Returns pointer to first character in a string that is not in another.

  #include <extras/extras_string.h>
  
  char * strspnp(char *s1, const char *s2);    
Parameter

s1

A pointer to a null-terminated character string to search.

s2

A pointer to a null-terminated character string containing characters to search for.

Remarks

This function determines the first position in the string at s1 that does not have a character in s2.

The function returns a pointer to a position in s1 or NULL.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.