tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
abs.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* abs.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/06/13 08:18:39 by tgrekov #+# #+# */
9/* Updated: 2024/06/24 06:00:44 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
26int abs(int n)
27{
28 if (n < 0)
29 return (n * -1);
30 return (n);
31}
int abs(int n)
Get absolute value of n.
Definition abs.c:26