Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////
- int PackText(char *sz_1, char *sz_2) //
- {
- int n = 0,
- i = 0,
- flag = 0;
- while(sz_2[n]) {
- if(sz_2[n] == ' ')
- {
- if( flag) { n++; continue; }
- sz_1[i++] = sz_2[n++]; flag = 1;
- }else{ sz_1[i++] = sz_2[n++]; flag = 0; }
- }
- sz_1[i] = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement