31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/10 10:13:03 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/10 10:15:13 by gbaconni ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int ft_str_is_numeric(char *str);
|
|
|
|
int main(void)
|
|
{
|
|
char str[32];
|
|
int result;
|
|
|
|
printf("Input [max 31]: ");
|
|
scanf("%s", str);
|
|
result = ft_str_is_numeric(str);
|
|
printf("str=%s result=%d\n", str, result);
|
|
return (0);
|
|
}
|