No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code=cplusplus] #include <iostream.h> #include <conio.h> char *mystrstr(char *,char *); void main(void) { clrscr(); char *str1,*str2; str1 = new char[100]; str2 = new char[100]; cout << "Enter first string: "; cin.get(str1,99); cin.get(); cout << "Enter seconed string: "; cin.get(str2,99); cin.get(); cout << mystrstr(str1,str2); getch(); } char *mystrstr(char *s1,char *s2) { // … |
|
Re:
Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah="*" uid="ekdopakek"> So let's just say we've got this 48764546545blah<blah="whatever" uid="ekdopakek">blahblahblah I'm looking for a function that will return the whatever, and just the whatever (nothing else). Thanks![/code] |