Tchatator413
TripEnArvor instant messaging protocol - JSON-based
|
slice data strucutre - Interface More...
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | slice_t |
A memory slice. More... | |
Macros | |
#define | SLICE_CONST(STRLIT) (slice_t) { .len = sizeof STRLIT - 1, .val = STRLIT } |
Functions | |
int | slice_leni (slice_t slice) |
Returns the length of a slice as a signed integer. | |
#define SLICE_CONST | ( | STRLIT | ) | (slice_t) { .len = sizeof STRLIT - 1, .val = STRLIT } |
int slice_leni | ( | slice_t | slice | ) |
Returns the length of a slice as a signed integer.
slice | A slice. |
slice
, capped to INT_MAX.