atx_str

typedef struct atx_str {
   const char* p;
   uint32_t len;
} atx_str;

Members

const char* p

Pointer to a byte array of const data

uint32_t len

Number of valid bytes that const char* p is pointing too.

Example

static void
on_alert(
    void* ctx,
    linq_network_alert_s* alert,
    linq_network_email_s* mail,
    device_s** d)
{
   // Print out the alert message using format string
   printf("%.*s", alert->mesg.len, alert->mesg.p);
}

See Also

linq_network_alert