-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_wstrlen.c
More file actions
26 lines (23 loc) · 1.03 KB
/
Copy pathft_wstrlen.c
File metadata and controls
26 lines (23 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_wstrlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmelvin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/15 13:57:09 by tmelvin #+# #+# */
/* Updated: 2019/12/15 13:58:23 by tmelvin ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_wstrlen(unsigned int *s)
{
size_t len;
len = 0;
while (*s != L'\0')
{
len += ft_wcharlen(*s);
s++;
}
return (len);
}