Compare commits

..

No commits in common. "2fa5d60e6eef7855b6fcdece7bfa1c450a958345" and "d49dac1669304e231bf940996734c8ff7574d054" have entirely different histories.

11 changed files with 2 additions and 29 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
build
*.swp

View File

@ -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

View File

@ -1,11 +1,8 @@
void ft_putnbr(int); void ft_putnbr(int);
void ft_putchar(char); void ft_putchar(char);
#include <limits.h>
#include <stdio.h>
int main(void) int main(void)
{ {
printf("%d = \n", INT_MIN); ft_putnbr(0xEFFFFFFF);
ft_putnbr(INT_MIN);
ft_putchar('\n'); ft_putchar('\n');
ft_putnbr(-7141); ft_putnbr(-7141);
ft_putchar('\n'); ft_putchar('\n');
@ -23,6 +20,6 @@ int main(void)
ft_putchar('\n'); ft_putchar('\n');
ft_putnbr(0xBADF00D); ft_putnbr(0xBADF00D);
ft_putchar('\n'); ft_putchar('\n');
ft_putnbr(INT_MAX); ft_putnbr(0x7FFFFFFF);
ft_putchar('\n'); ft_putchar('\n');
} }