
CREATOR_FILE(2)            silmul_efun           CREATOR_FILE(2)

名称
     creator_file - 取得一个档名是由谁创造的(在此不是人名)

语法
     string creator_file(string str);

描述
     Given a complete pathname in str, this function returns  the
     name  of  the file creator.  For files in the /adm and /cmds
     directories (and subdirectories  thereof),  it  returns  the
     root  UID;  for  files  in the /std and /obj directories(and
     subdirectories thereof), it returns the  backbone  UID;  for
     files  in  a  wizard's  home  directory  (and subdirectories
     thereof), it returns the wizard's name, and for files in the
     /d  directory  (and  subdirectories thereof), it returns the
     domain name.  For files in any other directory,  it  returns
     zero.

     For example:  creator_file("/u/i/ichabod/workroom.c")  would
     return                                            "ichabod".
     creator_file("/u/i/ichabod/castle/entrance.c")  would   also
     return "ichabod".

作者
     Ichabod@TMI, 1/20/93
     wade@future 4/7/1996 翻译

MudOS Release 0.9         Last change:                   3-19-93

