mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 21:04:56 +00:00
4d0884a1ea
(arith.c).
22 lines
361 B
C
22 lines
361 B
C
/*
|
|
Copyright (C) 2002 Vladimir Oleynik <dzo@simtreas.ru>
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
|
|
#include "libbb.h"
|
|
|
|
|
|
void bb_asprintf(char **string_ptr, const char *format, ...)
|
|
{
|
|
va_list p;
|
|
|
|
va_start(p, format);
|
|
if(vasprintf(string_ptr, format, p)<0)
|
|
error_msg_and_die(memory_exhausted);
|
|
va_end(p);
|
|
}
|