On 03/04/2018 14:02, YuGiOhJCJ Mailing-List via xml wrote:
printf("Content-Type: application/xhtml+xml;\n\n");
This operates on the stdout FILE pointer using buffered IO.
ctxt = xmlSaveToFd(1, NULL, XML_SAVE_FORMAT);
This operates on the stdout file descriptor using unbuffered IO. You're mixing buffered and unbuffered IO.
Nick _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml