Accept silc_file_stat and silc_file_fstat with the stat struct as NULL
[runtime.git] / lib / silcutil / silcfileutil.h
index 0824553804a32a497b216e565b6f3d2aa4fe7f8c..3bdf3ff9b2b645d109d5f35348ec51ab235e7f68 100644 (file)
@@ -217,8 +217,7 @@ char *silc_file_readfile(const char *filename, SilcUInt32 *return_len,
  *
  * DESCRIPTION
  *
- *    Writes a buffer to the file.  If the file is created specific mode is
- *    set to the file.
+ *    Writes a buffer to the file.  Returns 0 on success and -1 on error.
  *
  ***/
 int silc_file_writefile(const char *filename, const char *buffer,
@@ -234,7 +233,7 @@ int silc_file_writefile(const char *filename, const char *buffer,
  * DESCRIPTION
  *
  *    Writes a buffer to the file.  If the file is created the specified `mode'
- *    is set to the file.
+ *    is set to the file.  Returns 0 on success and -1 on error.
  *
  ***/
 int silc_file_writefile_mode(const char *filename, const char *buffer,