daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CString DoubleQuote(CString str)
  2. {
  3.     int x=0,len=0;
  4.     CString temp;
  5.     char buffer[100];
  6.    
  7.     temp.Empty();  
  8.     len=str.GetLength();
  9.     while(x < len) {  
  10.       temp+=str[x];
  11.       sprintf(buffer,"%c",str[x]);
  12.       if(strcmp(buffer,"'") == 0)
  13.         temp+="'";
  14.       x++;
  15.     }
  16.        
  17.     return temp;
  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