aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-06 00:02:56 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-06 00:02:56 +0100
commitdafee6410a4ecd7400a83adf84ded3621f30a365 (patch)
tree401c4169f4c2bf849d33a6a0201ab47d0f0f7782 /utils.c
parente6d8f543af4c1a45f30495b90a3912b1c75f2be7 (diff)
downloadft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.tar.gz
ft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.tar.bz2
ft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.zip
Refactored parsing to handle alone '%'
- renamed a few variables - added join_free* to libft - normed everything but ft_printf.c
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/utils.c b/utils.c
index d741c3a..faa6751 100644
--- a/utils.c
+++ b/utils.c
@@ -6,30 +6,12 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/29 00:12:40 by cacharle #+# #+# */
-/* Updated: 2019/10/30 23:15:27 by cacharle ### ########.fr */
+/* Updated: 2019/11/05 23:46:14 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-#include <stdlib.h>
#include "header.h"
-#define MIN_INT (1 << 31)
-#define MAX_INT (~(1 << 31))
-
-int strrchr_index(const char *s, char c)
-{
- int i;
-
- i = ft_strlen((char*)s) - 1;
- while (s[i] != c)
- {
- if (i == 0)
- return (-1);
- i--;
- }
- return (i);
-}
-
static int nbrlen_radix(long long int nbr, int radix)
{
int counter;