char url[] =  Combining CHAR Variables

How to combine this variables

I have got 3 chat Variables which i want to get combined into one char variable. At the moment the char Variables have fixed values but they should get later on variable values from Inputdevices

char URLID[] = "/main/publishStream";    
char OBJECTID[] = "/8";
char USERID[] = "/49438038";

This are the 3 Char Variables with Fixed Values at the moment later i want that they have variable Valeus.

How to get them combined in the char variable char url[]

in the End char url should have the following value

char url[] = "/main/publishStream/9438038/8/";

You need to allocate an array large enough to hold all of the strings. Then, initialize the new array, and use strcat to copy the existing arrays to the new array.

Or, use the String object, and let it take care of the allocation and copying.

can you provide a sample coe for this thanks in advance

char myBigArray[128];
myBigArray[0] = '\0';
strcat(myBigArray, myLittleArrayOne);
strcat(myBigArray, myLittleArrayTwo);
strcat(myBigArray, myLittleArrayThree);