void strpre(char* dest,int sum) { char buffer[256]={'\0'}; strcpy(buffer,dest); while(sum>0) { *dest++='0'; sum--; } int i=0; while(buffer[i]!='\0') *dest++=buffer[i++]; }