Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- char *supp_esp(char *ch_in){
- int i=0;
- int j=0;
- int a = strlen(ch_in);
- while(i<=a){
- if(*(ch_in+i)==' '){
- for(j=i;j<=a;j++){
- *(ch_in+j)=*(ch_in+(j+1));}
- }
- i++;}
- return ch_in;
- }
- int main(){
- char *chn = "re s sas ser ";
- supp_esp(chn);
- printf("%s",chn);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement