Arda Demir Arda Demir - 2 months ago 14
C++ Question

C++ remove quote from char type

Need test variable remove quotes. How to?

char test[] = "\"C:\\hello\"";

if(test[0] = '"')
{
// test variable 0 index to blank
}

Answer

Since you're on Windows, call the PathUnquoteSpaces function in the Windows API.

PathUnquoteSpaces(test);
Comments