minishell/src/subst/wildcard_exp.c
Jérôme Guélen e348040ea4
Subst: A norm NON-compliant and incomplete version
The code does not update flags yet and is to be refactored to conform to the
norm.
Tests required but needing a new version of the wordsplitting code.
2025-03-21 10:07:32 +01:00

29 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wildcard_exp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/23 15:02:59 by jguelen #+# #+# */
/* Updated: 2025/02/25 10:07:59 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
#include "subst.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)
{
}