Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int func(char *ss)
- {
- int cnt;
- char i = 0;
- char *s = (char *)ss;
- cnt= 0;
- for (i; i <= strlen(s); i++ );
- {
- if ( isspace(s[i]) )
- memcpy(&s[i+1], s+i+1, strlen(s)-i);
- cnt = cnt + 1;
- }
- return cnt;
- }
- void main()
- {
- int x = func("Hi !");
- printf("%d\n", x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement