*q++ = *p++; }
static char * str_escape(const char * original) {	const char *p;	char * ret_str, *q;	if (original == NULL)		return NULL;		ret_str = malloc(2*strlen(original) + 1);  /* Paranoid worse case all slashes will free quickly */	for(p = original, q=ret_str ; *p; p++, q++)        switch(*p) {            case '\\':                q[0] = '\\';				q[1] = '\\';				q++;                break;            case '\"':                q[0] = '\\';				q[1] = '\"';				q++;                break;            case '\n':				q[0] = '\\';				q[1] = '\n';				q++;                break;            default:				*q = *p;                break;        }	*q = 0;	return ret_str;}