1#include <assert.h>2#include <stdio.h>3#include <string.h>45/*6output:7testing8done9end:10*/1112int13main()14{15 char buf[] = "abcdef";1617 puts("testing");18 assert(strpbrk(buf, "a") == buf);19 assert(strpbrk(buf, "") == NULL);20 assert(strpbrk("", "a") == NULL);21 assert(strpbrk("", "") == NULL);22 assert(strpbrk(buf, "1234") == NULL);23 assert(strpbrk(buf, "f") == buf + 5);24 assert(strpbrk(buf, "12345a") == buf);25 puts("done");2627 return 0;28}