shithub: xml-9atom

ref: 17b3ae4f1a1ce71b26bd2d383c9be513af29bb66
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;
}