Displaying 1 result from an estimated 1 matches for "do_strtrim".
Did you mean:
do_strtoi
2016 Feb 09
0
Minor portability patch
...string.
I have been told that it may result in undefined behaviour in some shells when
the string is empty.
If you wish, I will provide a patch for this as well.
--- src/main/character.c.orig 2016-02-03 01:59:38.000000000 +0000
+++ src/main/character.c
@@ -1561,7 +1561,7 @@ SEXP attribute_hidden do_strtrim(SEXP ca
return s;
}
-static int strtoi(SEXP s, int base)
+static int Strtoi(SEXP s, int base)
{
long int res;
char *endp;
@@ -1595,7 +1595,7 @@ SEXP attribute_hidden do_strtoi(SEXP cal
PROTECT(ans = allocVector(INTSXP, n = LENGTH(x)));
for(i = 0; i < n; i++)
- INTE...