Compare commits
No commits in common. "2fa5d60e6eef7855b6fcdece7bfa1c450a958345" and "d49dac1669304e231bf940996734c8ff7574d054" have entirely different histories.
2fa5d60e6e
...
d49dac1669
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
build
|
||||
*.swp
|
22
Makefile
22
Makefile
@ -1,22 +0,0 @@
|
||||
#location of test mains
|
||||
OFFSHORE_MAINS := .
|
||||
# location of project directories
|
||||
OFFSHORE_PROJECTS := ..
|
||||
|
||||
empty:=
|
||||
space:= $(empty) $(empty)
|
||||
CFLAGS_MANDATORY := -Wall -Wextra -Werror
|
||||
all: $(foreach e, 00 01 02 03 04 05 06 07 08, build/c00/ex$e)
|
||||
build:
|
||||
mkdir $@
|
||||
norme:
|
||||
norminette -R CheckForbiddenSourceHeader ../c$(subst _,$(space),)
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
.SECONDEXPANSION:
|
||||
build/c%: $(OFFSHORE_PROJECTS)/c$$(subst _,+,$$*)/*.c $$(OFFSHORE_MAINS)/c$$*.c
|
||||
mkdir -p $(@D)
|
||||
$(CC) -o $@ $(CFLAGS_MANDATORY) $(CFLAGS) $^
|
||||
|
||||
.PHONY: all norme clean
|
@ -1,11 +1,8 @@
|
||||
void ft_putnbr(int);
|
||||
void ft_putchar(char);
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
int main(void)
|
||||
{
|
||||
printf("%d = \n", INT_MIN);
|
||||
ft_putnbr(INT_MIN);
|
||||
ft_putnbr(0xEFFFFFFF);
|
||||
ft_putchar('\n');
|
||||
ft_putnbr(-7141);
|
||||
ft_putchar('\n');
|
||||
@ -23,6 +20,6 @@ int main(void)
|
||||
ft_putchar('\n');
|
||||
ft_putnbr(0xBADF00D);
|
||||
ft_putchar('\n');
|
||||
ft_putnbr(INT_MAX);
|
||||
ft_putnbr(0x7FFFFFFF);
|
||||
ft_putchar('\n');
|
||||
}
|
Loading…
Reference in New Issue
Block a user