SHARE
TWEET

Untitled

dllbridge Jun 25th, 2020 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ////////////////////////////////////////////////////
  2. int PackText(char *sz_1, char  *sz_2)             //
  3. {
  4.    
  5.     int n = 0,
  6.         i = 0,
  7.      flag = 0;
  8.    
  9.     while(sz_2[n]) {
  10.        if(sz_2[n] == ' ')
  11.        {   
  12.               if( flag) {      n++;  continue; }
  13.               sz_1[i++] = sz_2[n++]; flag = 1;     
  14.        }else{ sz_1[i++] = sz_2[n++]; flag = 0; }
  15.     }
  16.    
  17.     sz_1[i] = 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top