minishell/src/subst/wildcard_exp.c

35 lines
1.4 KiB
C
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wildcard_exp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
2025-03-06 12:45:05 +01:00
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
2025-03-06 12:45:05 +01:00
/* Created: 2025/03/06 13:02/36 by khais #+# #+# */
/* Updated: 2025/03/06 13:02:36 by khais ### ########.fr */
/* */
/* ************************************************************************** */
2025-03-06 12:45:05 +01:00
#include "ft_printf.h"
#include "subst.h"
2025-03-06 12:45:05 +01:00
#include "unistd.h"
/*
** TODO
*/
/*
** A function designed to present all possible * filename expansions for the
** current directory.
** Does not take into account any other wildcard and does only search the
** current working directory.
** @PARAM A C compliant character string representing a pattern for a filename.
** @RETURN A NULL-terminated pointer to a wordlist
*/
t_wordlist *expand_star(char *file_pattern)
{
2025-03-06 12:45:05 +01:00
(void)file_pattern;
ft_dprintf(STDERR_FILENO, "Not implemented: expand_star\n");
return (NULL);
}