diff options
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -16,10 +16,9 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <sys/param.h> +#include <sys/types.h> -#include <errno.h> -#include <libgen.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> @@ -95,7 +94,7 @@ xreallocarray(void *oldptr, size_t nmemb, size_t size) return (newptr); } -int printflike2 +int xasprintf(char **ret, const char *fmt, ...) { va_list ap; @@ -120,7 +119,7 @@ xvasprintf(char **ret, const char *fmt, va_list ap) return (i); } -int printflike3 +int xsnprintf(char *buf, size_t len, const char *fmt, ...) { va_list ap; |