#include <stdio.h>#include <stdlib.h>voiddelete_space(char*s1,char*s2){while(*s1!=NULL){if(!isspace(*s1)){*s2=*s1;s2++;}s1++;}*s2='\0';}intmain(intargc,char*argv[]){charbuf[80],buf1[80];inti;printf("Please input a string\n");gets(buf);delete_space(buf,buf1);printf("The result of delete space from string\n");puts(buf1);system("PAUSE");return0;}