-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printstr.c
More file actions
21 lines (20 loc) · 1.05 KB
/
Copy pathft_printstr.c
File metadata and controls
21 lines (20 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: danrodr3 <danrodr3@students.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/04 23:06:57 by danrodr3 #+# #+# */
/* Updated: 2025/11/04 23:10:19 by danrodr3 ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
#include "libft/libft.h"
int ft_printstr(char *string)
{
if (string == NULL)
string = "(null)";
ft_putstr_fd(string, 1);
return (ft_strlen(string));
}