Пример #1
0
static void		print_word_fd(char *str)
{
	t_struct	*stt;

	stt = NULL;
	stt = ft_struct();
	ft_putstr_fd(str, stt->fd);
}
Пример #2
0
char		*ft_strcat(char *dest, char *src)
{
	int dest_size;
	int i;

	dest_size = ft_struct(2)->index_panda;
	i = 0;
	while (src [i] != '\0')
	{
		dest[dest_size - 1] = src[i - 1];
		i++;
		dest_size++;
	}
	dest[dest_size] = '\0';
	ft_struct(2)->index_panda = dest_size;
	return (dest);
}
Пример #3
0
static void		video_underl(t_lst *tmp)
{
	t_struct	*stt;
	int			fd;

	fd = 0;
	stt = NULL;
	stt = ft_struct();
	if (tmp->select == 1)
		ft_tputs("us");
	if (tmp->valid == 1)
		ft_tputs("mr");
	if ((fd = access(tmp->strr, F_OK)) != -1)
		ft_putstr_fd("\033[36;40m", stt->fd);
	ft_putstr_fd(tmp->strr, stt->fd);
	ft_tputs("ue");
	ft_tputs("me");
	if (fd == 0)
		ft_putstr_fd("\033[0m", stt->fd);
}