Function anjay_get_bool

Function Documentation

int anjay_get_bool(anjay_input_ctx_t *ctx, bool *out)

Reads a boolean value from the request content.

Parameters:
  • ctx – Input context to operate on.

  • out[out] Returned value. If the call is not successful, it is guaranteed to be left untouched.

Returns:

0 on success, a negative value in case of error.