SHARE
TWEET

Untitled

dllbridge Jun 27th, 2020 624 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ////////////////////////////////////////////////////
  3. int PackText(char *sz_1, char  *sz_2)             //
  4. {
  5.    
  6.     int n = 0,
  7.         i = 0,
  8.      flag = 0;
  9.    
  10.     while(sz_2[n]) {
  11.        if(sz_2[n] == ' ')
  12.        {   
  13.               if( flag) {      n++;  continue; }
  14.               sz_1[i++] = sz_2[n++]; flag = 1;     
  15.        }else{ sz_1[i++] = sz_2[n++]; flag = 0; }
  16.     }
  17.    
  18.     sz_1[i] = 0;
  19. }
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