Esempio n. 1
0
void	my_putmlkerror(char *str)
{
  int	i;

  i = 0;
  while (str[i])
    my_putcharerror(str[i++]);
}
Esempio n. 2
0
void	my_puterror(char *str)
{
  int	i;

  i = 0;
  while (str[i] != 0)
    {
      my_putcharerror(str[i]);
      i++;
    }
}
Esempio n. 3
0
void	my_putstrerror(char *str, int code)
{
  int	i;

  i = 0;
  while (str[i])
  {
    my_putcharerror(str[i]);
    i ++;
  }
  exit(code);
}
Esempio n. 4
0
int	my_putstrerror(char *str)
{
  if (str)
    {
      while (*str)
	{
	  if (my_putcharerror(*str++) == EXIT_FAILURE)
	    return (EXIT_FAILURE);
	}
      return (EXIT_SUCCESS);
    }
  return (EXIT_FAILURE);
}