Macaw OS C reference

Function wrapline

#include <macaw.h>
int wrapline(int i, char *buf, int size);

Gives you one of the lines the last wraptext made.

Parameters

iint
Which line, counting from 0.
bufchar *
Where to put the line's text.
sizeint
How many bytes buf holds. A line that's too long is cut short to fit.

Returns int

The whole line's length in characters, or -1 if there's no line i.

In Drawing, with cls, pset, pget, line, rect, rectfill, circ, circfill, tri, text, textwidth, clip, noclip, camera, box, centertext, shadowtext, textscaled, wraptext.