Thanks Milkman I'm returning strings now
However i got a new problem in my project compiling the command ultoa in Dev-C++.
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv[])
{
unsigned long ul;
char buffer [sizeof(unsigned long)*8+1];
printf ("Enter a number: ");
scanf ("%lu",&ul);
ultoa (ul,buffer,10);
printf ("decimal: %s\n",buffer);
ultoa (ul,buffer,16);
printf ("hexadecimal: %s\n",buffer);
ultoa (ul,buffer,2);
printf ("binary: %s\n",buffer);
system("PAUSE");
return EXIT_SUCCESS;
}
results in..
ultoa undeclaired (first us this function)
Any ideas? I hope Dev-C++ is not ANSI only?