DOKK / manpages / debian 10 / allegro4-doc / rest_callback.3alleg4.en
rest_callback(3alleg4) Allegro manual rest_callback(3alleg4)

rest_callback - Like rest(), but calls the callback during the wait. Allegro game programming library.

#include <allegro.h>

void rest_callback(long time, void (*callback)())

Like rest(), but for non-zero values continually calls the specified function while it is waiting for the required time to elapse. If the provided `callback' parameter is NULL, this function does exactly the same thing as calling rest().

install_timer(3alleg4), rest(3alleg4)

version 4.4.2 Allegro