2025-02-28 18:48:30 +01:00
|
|
|
/* ************************************************************************** */
|
|
|
|
|
/* */
|
|
|
|
|
/* ::: :::::::: */
|
|
|
|
|
/* wildcard_exp.c :+: :+: :+: */
|
|
|
|
|
/* +:+ +:+ +:+ */
|
2025-03-06 12:45:05 +01:00
|
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
2025-02-28 18:48:30 +01:00
|
|
|
/* +#+#+#+#+#+ +#+ */
|
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-02-28 18:48:30 +01:00
|
|
|
/* */
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
2025-03-06 12:45:05 +01:00
|
|
|
#include "ft_printf.h"
|
2025-02-28 18:48:30 +01:00
|
|
|
#include "subst.h"
|
2025-03-06 12:45:05 +01:00
|
|
|
#include "unistd.h"
|
2025-02-28 18:48:30 +01:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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);
|
2025-02-28 18:48:30 +01:00
|
|
|
}
|