diff options
author | jbj <jbj> | 2009-01-25 17:38:53 +0000 |
---|---|---|
committer | jbj <jbj> | 2009-01-25 17:38:53 +0000 |
commit | 5604abb251be340e0d2f86a1870a0fbbd0f3f30f (patch) | |
tree | 325e8f48ac78da747f7eeafad5c37b69a8025c7d /popt.h | |
parent | a0fbf70d53308e73e0092848d479e409b6f584c4 (diff) | |
download | libpopt-5604abb251be340e0d2f86a1870a0fbbd0f3f30f.tar.gz |
- poptReadFile: permit NULL if return values are not desired.
Diffstat (limited to 'popt.h')
-rw-r--r-- | popt.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |