diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-12 19:05:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-12 19:05:47 +0000 |
commit | 9d72453df4dc511deb6dc6371e56a40f8fe3c0a8 (patch) | |
tree | 5caf35e06b9803aa07004c9ac9c7c3840dc50a36 /test-recallocarray.c | |
parent | b393472ea460fc68b1f16089f9ce2375a7d78374 (diff) | |
download | mandoc-9d72453df4dc511deb6dc6371e56a40f8fe3c0a8.tar.gz |
Implement automatic line breaking
inside individual table cells that contain text blocks.
This cures overlong lines in various Xenocara manuals.
Diffstat (limited to 'test-recallocarray.c')
-rw-r--r-- | test-recallocarray.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-recallocarray.c b/test-recallocarray.c new file mode 100644 index 00000000..e0c60d71 --- /dev/null +++ b/test-recallocarray.c @@ -0,0 +1,11 @@ +#include <stdlib.h> + +int +main(void) +{ + void *p; + + if ((p = calloc(2, 2)) == NULL) + return 1; + return !recallocarray(p, 2, 3, 2); +} |