#include <unistd.h>
void ft_putchar(char c)
{
static char tab[255];
int i;
i = 0;
while (tab[i])
{
if (tab[i] == c)
return ;
i++;
}
write(1, &c, 1);
tab[i] = c;
}
int main(int argc, char **argv)
{
if (argc != 3)
return (0);
int i;
int j;
i = 0;
while (argv[1][i])
{
j = 0;
while (argv[2][j])
{
if (argv[1][i] == argv[2][j])
{
ft_putchar(argv[2][j]);
break ;
}
j++;
}
i++;
}
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: