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