ft_error_message
This commit is contained in:
parent
4ab87feccb
commit
e9ae0dea8e
6 changed files with 45 additions and 3 deletions
|
|
@ -65,6 +65,7 @@ dlst/ft_dlstrtostr.c\
|
||||||
dlst/ft_dlstsize.c\
|
dlst/ft_dlstsize.c\
|
||||||
error/error.c\
|
error/error.c\
|
||||||
ft_printf/ft_conversion.c\
|
ft_printf/ft_conversion.c\
|
||||||
|
ft_printf/ft_error_message.c\
|
||||||
ft_printf/ft_fmt_simplify.c\
|
ft_printf/ft_fmt_simplify.c\
|
||||||
ft_printf/ft_fmt_validate_conv.c\
|
ft_printf/ft_fmt_validate_conv.c\
|
||||||
ft_printf/ft_fmt_validate_flags.c\
|
ft_printf/ft_fmt_validate_flags.c\
|
||||||
|
|
@ -131,6 +132,7 @@ mem/ft_memmove.c\
|
||||||
mem/ft_memset.c\
|
mem/ft_memset.c\
|
||||||
mem/ft_realloc.c\
|
mem/ft_realloc.c\
|
||||||
path/ft_path_notdir.c\
|
path/ft_path_notdir.c\
|
||||||
|
printing/ft_error_message.c\
|
||||||
printing/ft_putchar.c\
|
printing/ft_putchar.c\
|
||||||
printing/ft_putendl.c\
|
printing/ft_putendl.c\
|
||||||
printing/ft_putnbr.c\
|
printing/ft_putnbr.c\
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/14 15:34:21 by jhalford #+# #+# */
|
/* Created: 2017/03/14 15:34:21 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/03/14 20:25:26 by jhalford ### ########.fr */
|
/* Updated: 2017/03/15 20:51:28 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */
|
/* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/03/14 20:24:05 by jhalford ### ########.fr */
|
/* Updated: 2017/03/15 20:51:55 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -80,6 +80,8 @@ void ft_putendl(char const *s);
|
||||||
void ft_putnbr(long n);
|
void ft_putnbr(long n);
|
||||||
void ft_putnbr_hex(long n);
|
void ft_putnbr_hex(long n);
|
||||||
|
|
||||||
|
int ft_error_message(char *message);
|
||||||
|
|
||||||
int ft_putchar_fd(int c, int fd);
|
int ft_putchar_fd(int c, int fd);
|
||||||
void ft_putstr_fd(char const *s, int fd);
|
void ft_putstr_fd(char const *s, int fd);
|
||||||
void ft_putendl_fd(char const *s, int fd);
|
void ft_putendl_fd(char const *s, int fd);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/03/08 11:50:46 by jhalford #+# #+# */
|
/* Created: 2017/03/08 11:50:46 by jhalford #+# #+# */
|
||||||
/* Updated: 2017/03/08 12:03:17 by jhalford ### ########.fr */
|
/* Updated: 2017/03/15 18:43:15 by ariard ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
19
libftasm/src/ft_printf/ft_error_message.c
Normal file
19
libftasm/src/ft_printf/ft_error_message.c
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* ************************************************************************** */
|
||||||
|
/* */
|
||||||
|
/* ::: :::::::: */
|
||||||
|
/* ft_error_message.c :+: :+: :+: */
|
||||||
|
/* +:+ +:+ +:+ */
|
||||||
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
|
/* +#+#+#+#+#+ +#+ */
|
||||||
|
/* Created: 2017/03/15 20:47:31 by ariard #+# #+# */
|
||||||
|
/* Updated: 2017/03/15 20:50:50 by ariard ### ########.fr */
|
||||||
|
/* */
|
||||||
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
#include "libft.h"
|
||||||
|
|
||||||
|
int ft_error_message(char *message)
|
||||||
|
{
|
||||||
|
ft_dprintf(2, message);
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
19
libftasm/src/printing/ft_error_message.c
Normal file
19
libftasm/src/printing/ft_error_message.c
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* ************************************************************************** */
|
||||||
|
/* */
|
||||||
|
/* ::: :::::::: */
|
||||||
|
/* ft_error_message.c :+: :+: :+: */
|
||||||
|
/* +:+ +:+ +:+ */
|
||||||
|
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
|
||||||
|
/* +#+#+#+#+#+ +#+ */
|
||||||
|
/* Created: 2017/03/15 20:47:31 by ariard #+# #+# */
|
||||||
|
/* Updated: 2017/03/15 20:50:58 by ariard ### ########.fr */
|
||||||
|
/* */
|
||||||
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
#include "libft.h"
|
||||||
|
|
||||||
|
int ft_error_message(char *message)
|
||||||
|
{
|
||||||
|
ft_dprintf(2, message);
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue