[Solved] Copy contents of non null terminated char array into another char array

[ad_1]

You want to memcpy

memcpy(history[index].input, inputBuffer, sizeof(inputBuffer)*sizeof(inputBuffer[0]));

4

[ad_2]

solved Copy contents of non null terminated char array into another char array