/* 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
*/
#include "string_nit.h"
+
+// Integer to NativeString method
+char* native_int_to_s(long recv){
+ int len = snprintf(NULL, 0, "%ld", recv);
+ char* str = malloc(len);
+ sprintf(str, "%ld", recv);
+ return str;
+}