void my_putmlkerror(char *str) { int i; i = 0; while (str[i]) my_putcharerror(str[i++]); }
void my_puterror(char *str) { int i; i = 0; while (str[i] != 0) { my_putcharerror(str[i]); i++; } }
void my_putstrerror(char *str, int code) { int i; i = 0; while (str[i]) { my_putcharerror(str[i]); i ++; } exit(code); }
int my_putstrerror(char *str) { if (str) { while (*str) { if (my_putcharerror(*str++) == EXIT_FAILURE) return (EXIT_FAILURE); } return (EXIT_SUCCESS); } return (EXIT_FAILURE); }