gcc addslashes()?
-
kennt jemand ne funktion die addslashes in php entspricht?
also ersetzen von ' " und so für gcc
[EDIT]
string addslashes(string text) { int i = 0; int l = text.length(); while(i<l) { if ((text[i]=='\'')||(text[i]=='\"')||(text[i]=='\\')) { text.insert(i,"\\"); i++; l = text.length(); } i++; } return text; }