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 | e0177b9bff2cd6141e183411fe5a31f6ba8fe1a9 (patch) | |
tree | 6bd3def11ff1053a38ced25716cddbf6378e26c9 /test-recallocarray.c | |
parent | 603cf4a99d61372bf702e449ab0aba998312b923 (diff) | |
download | mandoc-e0177b9bff2cd6141e183411fe5a31f6ba8fe1a9.tar.gz mandoc-e0177b9bff2cd6141e183411fe5a31f6ba8fe1a9.tar.zst mandoc-e0177b9bff2cd6141e183411fe5a31f6ba8fe1a9.zip |
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); +} |