diff options
Diffstat (limited to 'src/preprocess/filename.c')
| -rw-r--r-- | src/preprocess/filename.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/preprocess/filename.c b/src/preprocess/filename.c index 0470554..fa5c3d2 100644 --- a/src/preprocess/filename.c +++ b/src/preprocess/filename.c @@ -6,7 +6,7 @@ /* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/10/09 15:29:04 by cacharle #+# #+# */ -/* Updated: 2020/10/09 15:30:03 by cacharle ### ########.fr */ +/* Updated: 2020/10/10 10:49:50 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,15 @@ #include "lexer.h" #include "minishell.h" +/* +** \brief Preprocess the tokens of a filename +** \param tokens List of sicked string tokens +** \param env Environment +** \param filename A pointer where to put the resulting filename +** \return Return 0 on success, 1 on ambiguous redirect, +** EVAL_FATAL if an allocation failed +*/ + int preprocess_filename(t_tok_lst **tokens, t_env env, char **filename) { char **strs; |
