-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.c
More file actions
23 lines (20 loc) · 688 Bytes
/
utils.c
File metadata and controls
23 lines (20 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erabbath <erabbath@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/11 08:51:02 by erabbath #+# #+# */
/* Updated: 2023/07/12 07:35:44 by erabbath ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
size_t ft_strlen_max(char *str, size_t max)
{
size_t i;
i = 0;
while (str[i] && i < max)
i++;
return (i);
}