rendered paste bodyint aeroport(char *str)
{
char *vit;
int a;
int b;
int c;
char *cmp;
vit = "5000";
c = my_getnbr(vit);
a = my_strlen(str);
cmp = malloc(sizeof(*cmp) * a);
if (cmp == NULL)
exit (-1);
b = 32;
while (a >= 0)
{
cmp[a] = b;
a--;
}
while (b >= 32 && b <= 126)
{
my_putchar('\r');
a = 0;
while (str[a] != '\0' && cmp[a] != '\0')
{
if (str[a] == cmp[a])
{
my_putchar(str[a]);
}
else
my_putchar(cmp[a]);
a++;
}
while (a >= 0)
{
if (str[a] == cmp[a])
cmp[a] = str[a];
else
cmp[a] = b;
a--;
}
a = my_strlen(str);
usleep(c);
b++;
}
free(cmp);
my_putchar('\n');
return (0);
}