aboutsummaryrefslogtreecommitdiff
path: root/functions_reference/ref_ft_atoi_base.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-21 15:58:12 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-21 15:58:12 +0200
commitca5071168115e5cd272978e13ddb9fbb1365afbc (patch)
tree121bc50df693b70771a17d9b364da4d3896c9344 /functions_reference/ref_ft_atoi_base.c
parentd2fac61b27d827dc81a6ed867ec92dfad14a3385 (diff)
downloadlibasm_test-ca5071168115e5cd272978e13ddb9fbb1365afbc.tar.gz
libasm_test-ca5071168115e5cd272978e13ddb9fbb1365afbc.tar.bz2
libasm_test-ca5071168115e5cd272978e13ddb9fbb1365afbc.zip
WIP: Linux compatibility
Diffstat (limited to 'functions_reference/ref_ft_atoi_base.c')
-rw-r--r--functions_reference/ref_ft_atoi_base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions_reference/ref_ft_atoi_base.c b/functions_reference/ref_ft_atoi_base.c
index 1599163..52dd92c 100644
--- a/functions_reference/ref_ft_atoi_base.c
+++ b/functions_reference/ref_ft_atoi_base.c
@@ -6,13 +6,15 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 03:20:16 by cacharle #+# #+# */
-/* Updated: 2020/04/13 15:00:33 by charles ### ########.fr */
+/* Updated: 2020/10/21 15:29:23 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#include <ctype.h>
#include "libasm_test.h"
+#ifdef LIBASM_TEST_BONUS
+
static
bool valid_base(char *base)
{
@@ -54,3 +56,5 @@ int ref_ft_atoi_base(char *str, char *base)
}
return is_negative ? -nb : nb;
}
+
+#endif