Pl。以下の簡単な例が役立つかどうかを確認してください。
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(int argc, char* argv[])
{
char myarray[2][10], *temp;
//Populating something in the array
strcpy(myarray[0], "string1");
strcpy(myarray[1], "string2");
printf("%s\n", myarray[0]);
printf("%s\n", myarray[1]);
//Adding something at the end of the string..
//Be careful to check if the source is large enough.
//Also consider using strncat
strcat(myarray[0], ")");
printf("Appended at the end %s\n", myarray[0]);
//Append at the beginning
//Here you can use a temporary storage.
//And pl. do the required error handling for insufficent space.
temp = malloc(strlen(myarray[1]) + strlen("(") +1);
strcat(temp, "(");
strcat(temp, myarray[1]);
strcpy(myarray[1], temp);
printf("Appended at the beginning %s\n", myarray[1]);
free(temp);
return 0;
}