void populate_array(int * array, int arraySize, void * getNextValue) { int i; for(i = 0; i < arraySize; i++) { int TempFunction(int a); // temporary function TempFunction = getNextValue; // set function pointer array[i] = TempFunction(i); // execute function } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de