diff options
author | pommicket <pommicket@gmail.com> | 2025-09-11 16:40:04 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-11 16:40:47 -0400 |
commit | ec9cf4ef9b4ff2a16172e72adf5fca2a94ba3009 (patch) | |
tree | 0dfcd4d1bb36b26804d773b6a4c053e5ac4969d9 /pom.h | |
parent | 06b3634741718a264bef03ee7b38455a2482bb24 (diff) |
Start libpom implementation
Diffstat (limited to 'pom.h')
-rw-r--r-- | pom.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -111,12 +111,13 @@ pom_load(const char *filename, POM__MUST_USE_R; #ifndef POM_NO_STDIO -/// Load configuration from a `FILE *`. +/// Load configuration from a `FILE *`, which should be opened in binary mode. /// /// On success, a configuration is returned and `*error` is set to `NULL` /// if `error` is not `NULL`. /// -/// On failure, `NULL` is returned, and `*error` is filled out if `error` is not `NULL`, +/// On failure, `NULL` is returned, and `*error` is filled out if `error` is not `NULL` +/// (or set to `NULL` if no memory is available), /// in which case it must be freed with `free`. /// /// `filename` is only used for errors. @@ -130,7 +131,8 @@ POM__MUST_USE_R; /// On success, a configuration is returned and `*error` is set to `NULL` /// if `error` is not `NULL`. /// -/// On failure, `NULL` is returned, and `*error` is filled out if `error` is not `NULL`, +/// On failure, `NULL` is returned, and `*error` is filled out if `error` is not `NULL` +/// (or set to `NULL` if no memory is available), /// in which case it must be freed with `free`. POM__MUST_USE_L pom_conf * |