Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C Compiler.
- Code, Compile, Run and Debug C program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <stdio.h>
- char *start(char *str, char *car)
- {
- int i;
- int o;
- o = 0;
- i = 0;
- while (str[i])
- {
- while (car[o] && str[i])
- {
- while (car[o] == str[i])
- i++;
- o++;
- i++;
- }
- if (car[o] != str[i])
- break ;
- }
- return (str + i);
- }
- int main()
- {
- printf("%s", start("HellloH World", "Heelo"));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement