eCosPro® Reference Manual
Prev |  | Next

# netbuf_new()

## Name

netbuf_new() -- Allocate a netbuf structure

## Synopsis

``struct netbuf *netbuf_new`(void);`

## Description

Allocates a netbuf structure. No buffer space is allocated when doing this, only the top level structure. After use, the netbuf must be deallocated with `netbuf_delete()`.

Prev | Home | Next
API reference | Up | netbuf_delete()