debute testes avec masks binaires

This commit is contained in:
Hugo LAMY
2019-04-17 17:39:47 +02:00
parent 6c4577fafd
commit 8adbd2cb5a
2 changed files with 17 additions and 0 deletions

BIN
fillit Executable file

Binary file not shown.

17
test_mask.c Normal file
View File

@@ -0,0 +1,17 @@
#include "libft.h"
int main(int ac, char **av)
{
int init;
int mask;
mask = (1 << 4);
if (ac == 4)
{
ft_putendl(ft_convertbase(av[1], av[2], av[3]));
ft_putnbrendl(init);
init |= mask;
ft_putnbrendl(init);
}
return (0);
}