summaryrefslogtreecommitdiff
path: root/popt.h
diff options
context:
space:
mode:
authorjbj <jbj>2009-01-25 17:38:53 +0000
committerjbj <jbj>2009-01-25 17:38:53 +0000
commit5604abb251be340e0d2f86a1870a0fbbd0f3f30f (patch)
tree325e8f48ac78da747f7eeafad5c37b69a8025c7d /popt.h
parenta0fbf70d53308e73e0092848d479e409b6f584c4 (diff)
downloadlibpopt-5604abb251be340e0d2f86a1870a0fbbd0f3f30f.tar.gz
- poptReadFile: permit NULL if return values are not desired.
Diffstat (limited to 'popt.h')
-rw-r--r--popt.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/popt.h b/popt.h
index 56bd2ba..bd991a2 100644
--- a/popt.h
+++ b/popt.h
@@ -397,13 +397,13 @@ int poptSaneFile(const char * fn)
/**
* Read a file into a buffer.
* @param fn file name
- * @retval *bp buffer (malloc'd)
- * @retval *nbp no. of bytes in buffer (including final NUL)
+ * @retval *bp buffer (malloc'd) (or NULL)
+ * @retval *nbp no. of bytes in buffer (including final NUL) (or NULL)
* @param flags 1 to trim escaped newlines
* return 0 on success
*/
-int poptReadFile(const char * fn, /*@out@*/ char ** bp, /*@out@*/ size_t * nbp,
- int flags)
+int poptReadFile(const char * fn, /*@null@*/ /*@out@*/ char ** bp,
+ /*@null@*/ /*@out@*/ size_t * nbp, int flags)
/*@globals errno, fileSystem, internalState @*/
/*@modifies *bp, *nbp, errno, fileSystem, internalState @*/;
#define POPT_READFILE_TRIMNEWLINES 1