[BACK]Return to test-recallocarray.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / test-recallocarray.c (download)

Revision 1.1, Mon Jun 12 19:05:47 2017 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, HEAD

Implement automatic line breaking
inside individual table cells that contain text blocks.
This cures overlong lines in various Xenocara manuals.

#include <stdlib.h>

int
main(void)
{
	void	*p;

	if ((p = calloc(2, 2)) == NULL)
		return 1;
	return !recallocarray(p, 2, 3, 2);
}