boolean function c

C
#include <stdbool.h>
Source

Also in C: