Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- // This code outputs: h is in "This is my test string"
- int main(int argc, char* argv[])
- {
- const char *zborZaProverka= "nino";
- char *recenica = "jas se vikam nino no me vikaat pederche";
- char *c = recenica;
- while (*c)
- {
- if (strchr(zborZaProverka, *c))
- {
- printf("%c is in \"%s\"\n", *c, recenica);
- }
- c++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement