implemented the builtin primitive function sprintf

This commit is contained in:
2018-03-05 03:35:44 +00:00
parent d4d9491f3c
commit e3b5d33811
5 changed files with 178 additions and 4 deletions

View File

@ -276,6 +276,14 @@ void hcl_fini (hcl_t* hcl)
hcl->inttostr.t.ptr = HCL_NULL;
hcl->inttostr.t.capa = 0;
}
if (hcl->sprintf.xbuf.ptr)
{
hcl_freemem (hcl, hcl->sprintf.xbuf.ptr);
hcl->sprintf.xbuf.ptr = HCL_NULL;
hcl->sprintf.xbuf.capa = 0;
hcl->sprintf.xbuf.len = 0;
}
}
void hcl_clear (hcl_t* hcl, int flags)