escchar
if(!escchar(d) || (d == '"' && !quote)) {
if(!escchar(d)) { /* both \ and following
if(!escchar(c) || c == '"') {