Macaw OS C reference

Function levelerror

#include <macawlevel.h>
int levelerror(char *buf, int size);

Gives the message from the last call that didn't work, such as a file that wasn't there.

Parameters

bufchar *
Where the message goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the whole message.

In Opening, saving and building, with openlevel, loadlevel, newlevel, savelevel, buildlevel, freelevel, levelbuilt, levellit, levelpath, levellitpath, levelprobepath.