SyntaxFix
Write A Post
Hire A Developer
Questions
char **orderIds; orderIds = malloc(variableNumberOfElements * sizeof(char*)); for(int i = 0; i < variableNumberOfElements; i++) { orderIds[i] = malloc((ID_LEN + 1) * sizeof(char)); strcpy(orderIds[i], your_string[i]); }