Example
//Uses header file cstring or string.h:
void string_copy(char target[], const char source[], int target_size)
int new_length = strlen(source);
if (new_length > (target_size - 1))
new_length = target_size - 1; //That is all that will fit.
for (index = 0; index < new_length; index++)
target[index] = source[index];