mkdirs.c

tmi2_fluffos_v2/lib/adm/simul_efun/mkdirs.c · 286 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// mudlib: basis
// date:   1992/09/05
// author: Truilkan

void mkdirs(string path)
{
	string *parts, dir;
	int j;

	seteuid(geteuid(previous_object()));
	parts = explode(path, "/");
	dir = "";
	for (j = 0; j < sizeof(parts); j++) {
		dir += parts[j];
		mkdir(dir);
		dir += "/";
	}
}

Site Stats

Snippets: 1791
Codebases: 571