aboutsummaryrefslogtreecommitdiff
path: root/include/ms_glob.h
blob: 5b5c932a2dec0caed0242b44f1e27b53a8f46feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ms_glob.h                                          :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/05 11:45:11 by charles           #+#    #+#             */
/*   Updated: 2020/06/09 17:51:34 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#ifndef MS_GLOB_H
# define MS_GLOB_H

# include <dirent.h>
# include <unistd.h>
# include <stddef.h>
# include "libft_str.h"
# include "libft_vec.h"
# include "utils.h"
# include <limits.h>

struct		s_glob_param
{
	char	*pattern;
	t_ftvec	*matches;
};

t_ftvec		*glob_matches(char *pattern);
char		*ms_glob(char *pattern);
char		*ms_globf(char *pattern);

#endif