xmlbuff.c 234 B

12345678910111213
  1. #include <stdlib.h>
  2. #include "xmlbuff.h"
  3. XMLBuff *XMLBuffNew(void) {
  4. XMLBuff *out= malloc(sizeof(XMLBuff));
  5. *out= (XMLBuff){ };
  6. return out;
  7. }
  8. void XMLBuffFree(XMLBuff *in) {
  9. free(in->data);
  10. free(in);
  11. }