You want to memcpy
memcpy(history[index].input, inputBuffer, sizeof(inputBuffer)*sizeof(inputBuffer[0]));
4
solved Copy contents of non null terminated char array into another char array
You want to memcpy
memcpy(history[index].input, inputBuffer, sizeof(inputBuffer)*sizeof(inputBuffer[0]));
4
solved Copy contents of non null terminated char array into another char array