Macaw OS C reference

Function levellitpath

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

Gives the file a level's baked light is kept in: the same name with .lit in place of .lvl.

Parameters

pathconst char *
The level's file name.
bufchar *
Where the .lit file's name goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the .lit file's name.

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