data_structures
src
utils
ds_exit_set.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ds_exit_set.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2020/09/07 19:48:38 by unite #+# #+# */
10
/* Updated: 2020/09/07 22:26:03 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include "
utils.h
"
15
22
void
ds_exit_set
(
int
err)
23
{
24
errno = err;
25
perror(
"data_structures"
);
26
exit(errno);
27
}
utils.h
ds_exit_set
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.
Definition:
ds_exit_set.c:22
Generated by
1.8.16