| 1 | // |
| 2 | // layouttext.h |
| 3 | // Part of Plus, an interpreter for Scott Adams Graphic Adventures Plus |
| 4 | // |
| 5 | // Created by Petter Sjölund on 2022-01-11. |
| 6 | // |
| 7 | |
| 8 | #ifndef layouttext_h |
| 9 | #define layouttext_h |
| 10 | |
| 11 | #include <stdio.h> |
| 12 | |
| 13 | /* Breaks a null-terminated string up by inserting newlines,*/ |
| 14 | /* moving words down to the next line when reaching the end of the line */ |
| 15 | char *LineBreakText(const char *source, int columns, int *rows, int *length); |
| 16 | |
| 17 | #endif /* layouttext_h */ |