summaryrefslogtreecommitdiffstats
path: root/libft/include/libft.h
diff options
context:
space:
mode:
Diffstat (limited to 'libft/include/libft.h')
-rw-r--r--libft/include/libft.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/libft/include/libft.h b/libft/include/libft.h
index 6f3f523..7f71a18 100644
--- a/libft/include/libft.h
+++ b/libft/include/libft.h
@@ -15,7 +15,6 @@
# include <stddef.h>
# include <stdarg.h>
-# include <stdint.h>
# define FT_MIN_HEX_BASE "0123456789abcdef"
# define FT_MAJ_HEX_BASE "0123456789ABCDEF"
@@ -52,15 +51,15 @@ typedef struct s_printflist
int width;
int precision;
int fulllen;
- uint8_t isreverse;
- uint8_t isneg;
- uint8_t isaz;
- uint8_t zflag;
- uint8_t issharp;
- uint8_t isminus;
- int8_t isaspace;
- uint8_t isaplus;
- int8_t lh;
+ unsigned char isreverse;
+ unsigned char isneg;
+ unsigned char isaz;
+ unsigned char zflag;
+ unsigned char issharp;
+ unsigned char isminus;
+ char isaspace;
+ unsigned char isaplus;
+ char lh;
char conv;
char actconv;
} t_printflist;
@@ -69,8 +68,8 @@ typedef struct s_stok
{
char *spanp;
char *ns;
- int32_t c;
- int32_t sc;
+ int c;
+ int sc;
} t_stok;
/*
@@ -125,7 +124,7 @@ char *ft_nstr(size_t size);
char *ft_strsubst(char *str,
const char *pattern,
const char *subst);
-int8_t ft_strsubst_s(char *str,
+char ft_strsubst_s(char *str,
const char *pattern,
const char *subst);
char *ft_strtok_r(char *s, const char *delim, char **last);
@@ -136,10 +135,10 @@ char **ft_split(const char *s, char c);
** INT
*/
-uint8_t ft_intlen(long n);
-uint8_t ft_intlen_base(long n, char *base);
-uint8_t ft_uintlen(unsigned long n);
-uint8_t ft_uintlen_base(unsigned long n, char *base);
+unsigned char ft_intlen(long n);
+unsigned char ft_intlen_base(long n, char *base);
+unsigned char ft_uintlen(unsigned long n);
+unsigned char ft_uintlen_base(unsigned long n, char *base);
int ft_memcmp(const void *s1, const void *s2, size_t n);
t_bool ft_isspace(int c);
t_bool ft_iswhitespace(int c);
@@ -223,7 +222,7 @@ char *ft_printf_get_flags(const char *format,
char *ft_printf_flag_to_atoi(char *str);
char *ft_printf_get_width_nstr(char *str,
t_printflist *pflist);
-uint8_t ft_printf_is_multiwrite(const char *format);
+unsigned char ft_printf_is_multiwrite(const char *format);
int ft_printf_flags(const char *format,
int pos,
va_list arg,