shithub: xml-9atom

ref: 524f6890a72aa3629cc91ecf5c505ffa52f7eda4
dir: /libxml/xmlnew.c/

View raw version
#include <u.h>
#include <libc.h>
#include "xml.h"

Xml *
xmlnew(int blksize)
{
	Xml *xp;

	xp = mallocz(sizeof(Xml), 1);
	xp->alloc.blksiz = blksize;
	if(xp == nil)
		return nil;
	return xp;
}