-
Notifications
You must be signed in to change notification settings - Fork 0
/
wstrtombstr.c
23 lines (20 loc) · 1.02 KB
/
wstrtombstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wstrtombstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ewilliam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/04 15:56:56 by ewilliam #+# #+# */
/* Updated: 2017/03/04 15:56:58 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int wstrtombstr(char *dst, const wchar_t *ws)
{
char *tmp;
tmp = dst;
while (*ws)
tmp += ft_wctomb(tmp, *ws++);
return (0);
}