wip atoi
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
# include <sstream>
|
||||
#include <string.h>
|
||||
|
||||
static int eval_is_negative(int *n)
|
||||
@@ -28,6 +29,14 @@ static int eval_digit_nbr(int n)
|
||||
|
||||
char *ft_itoa(int n)
|
||||
{
|
||||
|
||||
// std::stringstream strs;
|
||||
// std::string s;
|
||||
//
|
||||
// strs << n;
|
||||
// s = strs.str();
|
||||
// return ((char*)(s.c_str()));
|
||||
|
||||
int i;
|
||||
char *str;
|
||||
int is_negative;
|
||||
|
||||
Reference in New Issue
Block a user