libft
Functions
ft_sqrt.c File Reference

Go to the source code of this file.

Functions

int ft_sqrt (int num)
 Computes an integer square root of a given number, if it exists. More...
 

Function Documentation

◆ ft_sqrt()

int ft_sqrt ( int  num)

Computes an integer square root of a given number, if it exists.

Parameters
numThe number of which to take a square root.
Returns
The integer square root, or -1 if it doesn't exit.

Definition at line 20 of file ft_sqrt.c.