Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
23
bitchx-docs/6_Functions/rename
Normal file
23
bitchx-docs/6_Functions/rename
Normal file
@@ -0,0 +1,23 @@
|
||||
Synopsis:
|
||||
$rename(<source> <destination>)
|
||||
|
||||
Technical:
|
||||
This function gives the specified file a new name. Files cannot be
|
||||
moves to different directories with this function.
|
||||
|
||||
Practical:
|
||||
Naturally, this function is useful any time a file needs to be renamed.
|
||||
One use for it might be to back up your .ircrc before doing a SAVE, just
|
||||
in case something goes wrong before the command is completed.
|
||||
|
||||
Returns:
|
||||
0 file renamed successfully
|
||||
-1 error during rename attempt
|
||||
|
||||
Examples:
|
||||
$rename(~/.ircrc ~/.ircrc.bak) returns 0 if successful
|
||||
$rename(/etc/passwd /etc/hahaha) probably will return -1
|
||||
|
||||
See Also:
|
||||
fexist(6); unlink(6)
|
||||
|
||||
Reference in New Issue
Block a user