summaryrefslogtreecommitdiffstats
path: root/src/u_utils.h
blob: 33e0f5dc9f99cb915191eaacc9d853757552b26f (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   u_utils.h                                          :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/14 17:19:27 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/14 17:19:29 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#ifndef U_UTILS_H
# define U_UTILS_H

# include <libft.h>

# include "s_struct.h"

t_bool		u_is_not_escaped(const char *head, const char *ptr);
void		u_eof_fd(int fd);
unsigned long	u_builtins_get_argc(const char *args[]);
char		**u_get_env_var_names(t_msh *msh);
unsigned char		u_get_builtin_id(const char bin[]);

#endif