zfile(7) - Linux man page
Name
zfile - helper functions for working with files.
Synopsis
// Delete file. Does not complain if the file is absent
CZMQ_EXPORT int
zfile_delete (const char *filename);
// Make directory (maximum one level depending on OS)
CZMQ_EXPORT int
zfile_mkdir (const char *dirname);
// Return 1 if file exists, else zero
CZMQ_EXPORT int
zfile_exists (const char *filename);
// Return size of file, or -1 if not found
CZMQ_EXPORT ssize_t
zfile_size (const char *filename);
// Self test of this class
int
zfile_test (bool verbose);
Description
The zfile class provides methods to work with files.
Example
From zfile_test method.
-
int rc = zfile_delete ("nosuchfile"); assert (rc == -1); rc = zfile_exists ("nosuchfile"); assert (rc == FALSE); rc = (int) zfile_size ("nosuchfile"); assert (rc == -1);
See Also
czmq(7)
Authors
The CZMQ manual was written by Pieter Hintjens<ph@imatix.com [1] >.
Resources
Main web site: http://czmq.zeromq.org/
Report bugs to the 0MQ development mailing list: <zeromq-dev@lists.zeromq.org [2] >
Copyright
Copyright © 1991-2010 iMatix Corporation and contributors. License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>. This is free software: you are free to change it and redistribute it. There is NO WARRANTY, to the extent permitted by law. For details see the files COPYING and COPYING.LESSER included with the CZMQ distribution.