commit 59d562888dd69f8914df8d51ba5de0172d251450
parent 0f7ff9c0f8cef7a327c501f1bc9233b68925ec1d
Author: ByteProject <stefan.vogt@byteproject.net>
Date: Thu, 16 Feb 2012 00:14:24 +0100
refactored to use 32 bit integers
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ansilove/explode.c b/ansilove/explode.c
@@ -15,11 +15,11 @@
#include "explode.h"
#endif
-int64_t explode(char ***arr_ptr, char delimiter, char *str)
+int32_t explode(char ***arr_ptr, char delimiter, char *str)
{
char *src = str, *end, *dst;
char **arr;
- int64_t size = 1, i;
+ int32_t size = 1, i;
while ((end = strchr(src, delimiter)) != NULL)
{
diff --git a/ansilove/explode.h b/ansilove/explode.h
@@ -26,6 +26,6 @@
// via array pointer and you don't have to determine how many string
// instances were stored overall as this is what you're getting.
-int64_t explode(char ***arr_ptr, char delimiter, char *str);
+int32_t explode(char ***arr_ptr, char delimiter, char *str);
#endif