Macaw OS C reference

Function levelskies

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

Gives the name of one of the skies there are, in alphabetical order, so you can list them.

Parameters

iint
Which sky, from 0.
bufchar *
Where the name goes, a char array.
sizeint
How many bytes buf holds.

Returns int

The length of the name, or 0 once there are no more.

In Skies and textures, with levelsky, leveltexture, leveltexturename.