summaryrefslogtreecommitdiffstats
path: root/src/u_utils.h
blob: e136eccacce7b8e5bd3f00c50410fddb5b1c8b2c (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
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   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 <stdint.h>

# include "s_struct.h"

t_bool		u_is_not_escaped(const char *head, const char *ptr);
void		u_eof_fd(int32_t fd);
uint64_t	u_builtins_get_argc(const char *args[]);
char		**u_get_env_var_names(t_msh *msh);
uint8_t		u_get_builtin_id(const char bin[]);

#endif