man strstr char *strstr(const char *s1, const char *s2); >---------- >From: - Pure Krome -[SMTP:pure@SPRINT.COM.AU] >Sent: Saturday, January 03, 1998 3:22 AM >To: CIRCLE@POST.QUEENSU.CA >Subject: [NEWBIE] Find a chars name in a string > >Hello all. > VERY VERY simple question here. > >if i have some string (eg .. "hello everyone one. My name is >DumbNewbie!"), what C function would return TRUE or whatever if i'm >trying to test if string "DumbNewbie" - or for that matter, _any_ string >- in some other string. > >i thought of using strcmp but i think that only compares two strings, >not the _contents_ of one string to some other string. > >make sence? > >J. > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST