I have a global array in my program and I want to be able to change it's size at least once in the beginning using a function. Basically like this:
pthread_t threadsArray[10]; //default size: 10
void SetMaxThreads(unsigned int count) {
pthread_t threadsArray[count];
}
What would you suggest me to do? How could I accomplish this?