tgrekov-ft_printf
HIVE printf Feb 2024
Loading...
Searching...
No Matches
wrap_err.c
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* wrap_err.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/12/21 02:49:16 by tgrekov #+# #+# */
9
/* Updated: 2024/02/13 07:10:29 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
29
int
wrap_err
(
int
n,
int
*total)
30
{
31
if
(n == -1)
32
{
33
*total = -1;
34
return
(0);
35
}
36
*total += n;
37
return
(1);
38
}
wrap_err
int wrap_err(int n, int *total)
Wrapper for handling functions that return a positive integer on success and -1 on failure....
Definition
wrap_err.c:29
srcs
mandatory
utils
wrap_err.c