Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CString DoubleQuote(CString str)
- {
- int x=0,len=0;
- CString temp;
- char buffer[100];
- temp.Empty();
- len=str.GetLength();
- while(x < len) {
- temp+=str[x];
- sprintf(buffer,"%c",str[x]);
- if(strcmp(buffer,"'") == 0)
- temp+="'";
- x++;
- }
- return temp;
- }
Add Comment
Please, Sign In to add comment