Hi I need some help with this function I wrote.....I have multiple variables of the same type..eglaintext1,plaintext2....plaintext100. I want to cycle through each one and process them...
I wrote the following while loop...It only works for two...
while(j<=2)
{
char str1[11] ={"plaintext"};
char str[3];
str[3]=itoa(j,str,10);
strcat(str1,str);
printf("%s values are\n",str1);
split_Data(str1,ciphertext1);
}
so I have a string initialised with Plaintext..and I concatenate the loop variable each time and call split_data...
now my problem is...the first arg (the concatenated variable I spoke about above) value is the string....not the actual variables I have...
any ideas...I would really appreciate some help on this...
thanks



LinkBack URL
About LinkBacks
laintext1,plaintext2....plaintext100. I want to cycle through each one and process them...



