Skip to content

Instantly share code, notes, and snippets.

@rcombs
Created April 13, 2013 23:42
Show Gist options
  • Save rcombs/5380635 to your computer and use it in GitHub Desktop.
Save rcombs/5380635 to your computer and use it in GitHub Desktop.
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