nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdlib/strings: Corrected test_isa to work on Text instead of AbstractArrayRead.
[nit.git]
/
lib
/
standard
/
string_nit.c
diff --git
a/lib/standard/string_nit.c
b/lib/standard/string_nit.c
index
747df8c
..
15979dc
100644
(file)
--- a/
lib/standard/string_nit.c
+++ b/
lib/standard/string_nit.c
@@
-1,7
+1,5
@@
/* This file is part of NIT ( http://www.nitlanguage.org ).
*
/* This file is part of NIT ( http://www.nitlanguage.org ).
*
- * Copyright 2012 Alexis Laferrière <alexis.laf@xymus.net>
- *
* This file is free software, which comes along with NIT. This software is
* distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* This file is free software, which comes along with NIT. This software is
* distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
@@
-12,3
+10,10
@@
*/
#include "string_nit.h"
*/
#include "string_nit.h"
+
+// Integer to NativeString method
+char* native_int_to_s(int recv, int len){
+ char* str = malloc(len + 1);
+ sprintf(str, "%d", recv);
+ return str;
+}