30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_vprintf_string.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/01/20 11:56:37 by gbaconni #+# #+# */
|
|
/* Updated: 2022/04/12 23:50:02 by gbaconni ### lausanne.ch */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libftprintf.h"
|
|
|
|
int ft_vprintf_string(const char *format, va_list ap)
|
|
{
|
|
int ret;
|
|
int len;
|
|
char *s;
|
|
|
|
(void) format;
|
|
ret = 0;
|
|
len = 0;
|
|
s = va_arg(ap, char *);
|
|
len = ft_strlen(s);
|
|
write(1, s, len);
|
|
ret += len;
|
|
return (ret);
|
|
}
|