]> git.ozlabs.org Git - ccan/blobdiff - ccan/noerr/noerr.h
crypto/shachain/tools: update to new rbuf API.
[ccan] / ccan / noerr / noerr.h
index 191b3d3cfc49eb76405b9b79f4680c0e622b43fd..bafb59bd021d5ff76d3f6c215afb837d8a2783a5 100644 (file)
@@ -1,3 +1,4 @@
+/* CC0 (Public domain) - see LICENSE file for details */
 #ifndef NOERR_H
 #define NOERR_H
 #include <stdio.h>
@@ -29,4 +30,12 @@ int fclose_noerr(FILE *fp);
  */
 int unlink_noerr(const char *pathname);
 
+/**
+ * free_noerr - free memory without stomping errno.
+ * @p: the pointer to free.
+ *
+ * errno is saved and restored across the call to free: the standard leaves
+ * that undefined.
+ */
+void free_noerr(void *p);
 #endif /* NOERR_H */