zoneload.h
musicmud-2.1.6/include/zoneload.h · 685 B
From the archive musicmud2.1.6.tar.gz
Download the archive « Back to the archive contents
#ifndef ZONELOAD_H
#define ZONELOAD_H
//! load all the zones
void load_zones();
//! load zone with given name
void load_newzone(const char*);
//! read a full line from /f/ and return it
string getline(FILE *f);
//! read a property line from /f/ and return it
string getproperty(FILE *f);
inline char * fgets2(char *buf, int size, FILE *f)
{
strncpy(buf, getproperty(f).c_str(), size);
buf[size-1] = 0;
return buf;
}
//! save all the vardata
void save_var_data();
//! load all the vardata
void load_var_data();
//! save vardata for given zone
void save_var_zone(const char *);
//! load vardata from given file
void load_var_data(const char *dir, const char *fn);
#endif