All pastes #202366 Raw Edit

Untitled

public text v1 · immutable
#202366 ·published 2006-10-14 13:12 UTC
rendered paste body
#include <unistd.h>

int     my_putstrslow(char *str, int vitesse)
{
  while (*str)
    {
    my_putchar(*str++);
    usleep(vitesse);
    }
}
int     main(char argc, char **argv)
{
  int   j;
  int   vitesse;
  int   tmp;
  int   tmp2;

  j = 1;
  vitesse = 500;
  while (1)
    {
      while (j <  argc)
        {
          my_putstrslow(argv[j], vitesse);
          tmp = my_strlen(argv[j]);
          sleep(1);
          while (tmp != 0)
            {
              while (tmp2)
                {
                  my_putchar('\b');
                  my_putchar(' ');
                  tmp2--;
                }
          tmp--;
            }
          j++;
          if (j == argc)
            j = 1;
        }
    }
}