Here is my code which uses itoa() function , seems not working. Let me make it clear, I am working on C.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void main()
{
int i,j;
for(i = 0;i<= 4; i++)
{
for (j = 0; j <= 9; j++)
{
//printf("Hi\n");
char fileName[10]="A";
char append[2];
itoa(i,append,10);
strcat(fileName,append);
itoa(j,append,10);
strcat(fileName,append);
printf("i=%d j=%d\n", i,j);
printf("%s\n", fileName);
//FMS()
}
//printf("Anuj=%d\n",i );
}
}
Output
RC4Attack.c:(.text+0x5e): undefined reference to itoa'
RC4Attack.c:(.text+0x8e): undefined reference to
itoa'
collect2: error: ld returned 1 exit status