tgrekov-push_swap
HIVE push_swap July 2024
Loading...
Searching...
No Matches
err.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* err.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/07/16 12:07:31 by tgrekov #+# #+# */
9
/* Updated: 2024/07/17 08:31:09 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#include <libft.h>
21
29
int
err
(
char
*str,
int
retval)
30
{
31
ft_putstr_fd
(str, 2);
32
return
(retval);
33
}
err
int err(char *str, int retval)
Print str to stderr and return retval.
Definition
err.c:29
ft_putstr_fd
void ft_putstr_fd(char *s, int fd)
Write string at pointer s to file descriptor fd.
Definition
ft_putstr_fd.c:28
src
mandatory
utils
err.c