librfn
An ad-hoc utility library
Functions
util.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "librfn.h"

Go to the source code of this file.

Functions

int32_t cyclecmp32 (uint32_t a, uint32_t b)
 Compares values that may be subject to overflow. More...
 
bool ratelimit_check (ratelimit_state_t *rs, uint32_t n, uint32_t window)
 Check that the rate limiter has not triggered. More...
 
void rf_internal_out_of_memory (void)
 
void * xmalloc (size_t sz)