file_length.notneeded

final_realms_fluffos_v1/lib/secure/simul_efun/file_length.notneeded · 286 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

/* This is a very temporary hack.  file_length() seems to crash and burn
   with directories.  So let's wrap it...   -- Hamlet 
*/
int file_length(string file_name) {
   int tmp;

   tmp = file_size(file_name);
   if(tmp < 1)
     return tmp;

   return efun::file_length(file_name);
}

Site Stats

Snippets: 1791
Codebases: 571