Good morning to all!
I have a program and i'm trying to use itoa but i get the following error :
Undefined first referenced
symbol in file
itoa /var/tmp//ccS9wuQX.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
My source code is:
Code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
int counter = 0;
char array[20];
itoa(counter,array,10);
/* counter is the integer value i would like to convert in ASCII */
/* array is the array where the ascii value is going to be stored */
/* I'm not sure if 10 is right, as i understood from the manual page of itoa it means decimal */
printf("%s\n",array);
}
Thanks, in advance!!!
Which library shall i include in the C program?