xmlbuff.c 248 B

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