Copy every single character from a char into another char.
I have some problems with copying a single character from one char into another. How do I do that? I'm quite the beginner, so I would appreciate your help.
Here is the function I am using
I am trying to copy in a loop every single character from char line into char line1. That is not working.
text_col (char line)
int l, ii;
l = strlen(line);
//looping through the word - each character
//This is my attempt to copy a character
strcpy (line1, line[ii]);
Can you tell me why and how I can fix it?
Thank you very much!