char* escape_string( const char* str, char* buffer, int buffer_size) { int i = 0, j = 0; while( str[i] != 0 && j