+
+
+/*
+ * Output a string to the client as a CDATA block
+ */
+void cdataout(char *rawdata)
+{
+ char *ptr = rawdata;
+ wc_printf("<![CDATA[");
+
+ while ((ptr != NULL) && (ptr[0] != 0))
+ {
+ if (!strncmp(ptr, "]]>", 3)) {
+ wc_printf("]]]]><![CDATA[>");
+ ++ptr; ++ptr; ++ptr;
+ }
+ else {
+ wc_printf("%c", ptr[0]);
+ ++ptr;
+ }
+ }
+
+ wc_printf("]]>");
+}
+
int suppress_check,
int cache);
void output_custom_content_header(const char *ctype);
+void cdataout(char *rawdata);
#ifdef UBER_VERBOSE_DEBUGGING
#define wc_printf(...) wcc_printf(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)