Macaw OS C reference

Function imap_note

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

Gives you one of the import's notes, as text you can show the person.

Parameters

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

Returns int

The whole note's length, or -1 if there's no note i.

In Maps made elsewhere, with importmap, importmapimage, imap_layers, imap_layername, imap_size, imap_get, imap_picture, imap_used, imap_notes, imap_free.