Utility

CLAMP

CLAMP Description Clamps the value of x to be within the inclusive range [lo, hi].

Read More

IN_RANGE

IN_RANGE Description Checks if the value x is within the inclusive range [lo, hi].

Read More

ITER_DATA_TYPE

ITER_DATA_TYPE Description Get data type of Iter elements

Read More

JSkipValue

JSkipValue Description Skip the current JSON value at reading position.

Read More

JSkipWhitespace

JSkipWhitespace Description Skip whitespace from current reading position.

Read More

LVAL

LVAL Description Creates a temporary, addressable l-value from a given expression x.

Read More

MAX2

MAX2 Description Returns the larger of two values x and y.

Read More

MIN2

MIN2 Description Returns the smaller of two values x and y.

Read More

NULL_ITER

NULL_ITER Description Type specific NULL for given Iter object. Use this instead of NULL when comparing for nullity of Iter objects of same type. Null value for Iter objects

Read More

NULL_ITER_DATA

NULL_ITER_DATA Description Type specific NULL for data type Iter object is iterating over. Use this instead of NULL when comparing for nullity of Iter objects of same type. Null value for Iter element pointers

Read More

ReadCompleteFile

ReadCompleteFile Description Read complete contents of file at once. Pointer returned is malloc’d and hence must be freed after use. The returned pointer can also be reused by providing pointer to it in data parameter. realloc is called on *data in order to expand it’s size. If *capacity exceeds the size of file to be loaded, then no reallocation is performed. This means the provided buffer will automatically be expanded if required. The returned buffer is null-terminated just-in-case. The implementation and API is designed in such a way that it can be used with containers like Vec and Str.

Read More