file_exists.c
final_realms_fluffos_v1/lib/secure/simul_efun/file_exists.c · 335 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
// /secure/simul_efun/file_exists.c
// from the RotD Mudlib
// returns true if the file named exists
// created by Descartes of Borg 930822
int file_exists(string str) {
int ret;
seteuid(geteuid(previous_object()));
if(file_size(str) > -1) ret = 1;
else ret = 0;
seteuid(0);
return ret;
}