lib/dp-packet.c
/* Creates and returns a new dp_packet with an initial capacity of 'size'
 * bytes. */
Creates and returns a new dp_packet with an initial capacity of 'size'
bytes.
Creates and returns a new dp_packet with an initial capacity of ' size ' bytes .
struct dp_packet *
dp_packet_new(size_t size)
{
    struct dp_packet *b = xmalloc(sizeof *b);
    dp_packet_init(b, size);
    return b;
}
struct dp_packet * dp_packet_new ( size_t size ) { struct dp_packet * b = xmalloc ( sizeof * b ) ; dp_packet_init ( b , size ) ; return b ; }
Creates and returns a new dp_packet with an initial capacity of 'size'
 bytes.
Creates and returns a new dp_packet with an initial capacity of ' size ' bytes .