How to use _mbsspnp (returns a pointer to the first character in string1 that is not in string2) in C

1 Answer

0 votes
#include <mbstring.h>
#include <stdio.h>

int main(void)
{
    const unsigned char string1[] = "ccppjava";
    const unsigned char string2[] = "c";

    unsigned char* p = 0;

    p = _mbsspnp(string1, string2);

    printf("%s\n", p);

    return 0;
}




/*
run:

ppjava

*/

 



answered Apr 7, 2022 by avibootz
...