Created
April 13, 2013 23:42
-
-
Save rcombs/5380635 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ResHandle config_file = resource_get_handle(RESOURCE_ID_CLASS_LIST); | |
size_t config_size = resource_size(config_file); | |
period_count = config_size / sizeof(period); // 38 = size of each period record | |
periods = malloc(period_size * period_count); | |
resource_load(config_file, periods, config_size); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment