-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckintstr.c
23 lines (20 loc) · 1.04 KB
/
checkintstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* checkintstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/05/24 20:53:07 by vbrazas #+# #+# */
/* Updated: 2018/05/27 15:04:10 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *checkintstr(char *str)
{
size_t i;
i = 0;
while (str[i] && ft_isdigit(str[i]))
i++;
return (str[i] == '\0' ? NULL : (char*)(str + i));
}