rendered paste body#include <unistd.h>
#include <stdlib.h>
char *stock(int taille);
int my_put_nbr(int nb);
int my_putstr(char *str);
char *stock(int taille)
{
char *str;
char *osef;
int fd;
*osef = malloc(sizeof(*osef)*taille);
str = malloc(sizeof(*str)*taille);
fd = read(0, osef, taille);
if (fd == taille)
{
*str = DecToBase("0123456789ABCDEF", osef);
my_putstr(str);
//write(1, str, fd);
}
else
write(2, "Error 42.", 9);
return (0);
}
int main(int argc, char **argv)
{
stock(2);
return (0);
}
/*
{
BaseToDec("0123456789ABCDEF", argv[1]);
if (argc > 3)
stock(my_getnbr(argv[3]));
else
write(2, "Error 84.", 9);
return (0);
}
*/