Correction: function names must be ft_*
This commit is contained in:
parent
81f932f0be
commit
6b7a5d0ffb
12 changed files with 27 additions and 23 deletions
11
Makefile
11
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ #
|
# By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/10/03 18:03:12 by lalgarra #+# #+# #
|
# Created: 2025/10/03 18:03:12 by lalgarra #+# #+# #
|
||||||
# Updated: 2025/10/03 18:50:51 by lalgarra ### ########.fr #
|
# Updated: 2025/10/03 21:16:37 by lalgarra ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
|
|
@ -14,10 +14,13 @@
|
||||||
LIBDIR = ../repo_libft_algarra
|
LIBDIR = ../repo_libft_algarra
|
||||||
#LIBDIR = ../repo_algarra
|
#LIBDIR = ../repo_algarra
|
||||||
|
|
||||||
CFLAGS += -Wall -Wextra -Werror -g3 -iquote $(LIBDIR) -L$(LIBDIR) -lft
|
CFLAGS += -Wall -Wextra -Werror -g3 -iquote $(LIBDIR)
|
||||||
|
|
||||||
TESTS:= isalpha_test isdigit_test isalnum_test isascii_test \
|
TESTS := ft_isalpha_test ft_isdigit_test ft_isalnum_test ft_isascii_test \
|
||||||
isprint_test
|
ft_isprint_test
|
||||||
|
|
||||||
|
%_test : %_test.c
|
||||||
|
$(CC) $(CFLAGS) $*_test.c -L$(LIBDIR) -lft -o $*_test
|
||||||
|
|
||||||
%_actual.output : %_test
|
%_actual.output : %_test
|
||||||
@./$*_test > ./$*_actual.output ;
|
@./$*_test > ./$*_actual.output ;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ int main(void)
|
||||||
|
|
||||||
for (c = 0; c < 256; c++)
|
for (c = 0; c < 256; c++)
|
||||||
{
|
{
|
||||||
printf("'%c' (%i); isalnum(c): %i\r\n", c, c, isalnum(c));
|
printf("'%c' (%i); isalnum(c): %i\r\n", c, c, ft_isalnum(c));
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
14
ft_isalpha_test.c
Normal file
14
ft_isalpha_test.c
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#include "libft.h"
|
||||||
|
#include<stdio.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
int c;
|
||||||
|
|
||||||
|
for (c = 0; c < 256; c++)
|
||||||
|
{
|
||||||
|
/*printf("'%c' (%i); isalpha(c): %i\r\n", c, c, ft_isalpha(c));*/
|
||||||
|
printf("'%c' (%i); isalpha(c): %i\r\n", c, c, ft_isdigit(c));
|
||||||
|
}
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
@ -10,7 +10,7 @@ int main(void)
|
||||||
|
|
||||||
for (c = 0; c < 256; c++)
|
for (c = 0; c < 256; c++)
|
||||||
{
|
{
|
||||||
printf("'%c' (%i); isascii(c): %i\r\n", c, c, isascii(c));
|
printf("'%c' (%i); isascii(c): %i\r\n", c, c, ft_isascii(c));
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@ int main(void)
|
||||||
|
|
||||||
for (c = 0; c < 256; c++)
|
for (c = 0; c < 256; c++)
|
||||||
{
|
{
|
||||||
printf("'%c' (%i); isalpha(c): %i\r\n", c, c, isalpha(c));
|
printf("'%c' (%i); isdigit(c): %i\r\n", c, c, ft_isdigit(c));
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* isprint_test.c :+: :+: :+: */
|
/* ft_isprint_test.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
|
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
|
||||||
/* Updated: 2025/10/03 18:39:12 by lalgarra ### ########.fr */
|
/* Updated: 2025/10/03 20:17:16 by lalgarra ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@ int main(void)
|
||||||
|
|
||||||
for (p1 = 0; p1 < 256; p1++)
|
for (p1 = 0; p1 < 256; p1++)
|
||||||
{
|
{
|
||||||
printf("'%c' (%i); isprint(c)!=0: %i\r\n", p1, p1, isprint(p1)!=0);
|
printf("'%c' (%i); isprint(c)!=0: %i\r\n", p1, p1, ft_isprint(p1)!=0);
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#include "libft.h"
|
|
||||||
#include<stdio.h>
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
int c;
|
|
||||||
|
|
||||||
for (c = 0; c < 256; c++)
|
|
||||||
{
|
|
||||||
printf("'%c' (%i); isdigit(c): %i\r\n", c, c, isdigit(c));
|
|
||||||
}
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue