Macaw OS C reference

Function imap_layername

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

Gives you the name of one of an imported map's layers.

Parameters

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

Returns int

The whole name's length, or -1 if there's no such layer.

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