Allegro 5 api
#include <allegro5/allegro.h> al_fixed al_fixsqrt(al_fixed x)
This finds out the non negative square root of x. If x is negative, Allegro\[aq]s errno is set to EDOM and the function returns zero.