0
0

Add main.* and remove .gitignore

This commit is contained in:
2021-08-16 08:26:30 +02:00
parent a808b91a50
commit 44692816d5
85 changed files with 1352 additions and 30 deletions

View File

@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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);
}