on master help sign in
Make main return 0 so it passes the tests
commit21d34b984822c3dc9d4013b08c32a1d285a30af4 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 3 Jan 2018, 21:54 (9 years ago) parent1affc8e
1 file changed+2−1
gen/test.c+2−1
gen/test.c+2−1
@@ -333,13 +333,14 @@ document* hexml_document_parse(const char* s, int slen)
333333 return d;
334334}
335335
336−void main()
336+int main()
337337{
338338 const document* d = hexml_document_parse("<test foo='123 xyz'/>", -1);
339339 char buf[1000];
340340 int len = hexml_node_render(d, hexml_document_node(d), buf, sizeof(buf));
341341 buf[len] = 0;
342342 printf("Result = %s\n", buf);
343+ return 0;
343344}
344345
345346/*