Skip to content

Instantly share code, notes, and snippets.

@ivira
Created February 29, 2012 21:59
Show Gist options
  • Save ivira/1944777 to your computer and use it in GitHub Desktop.
Save ivira/1944777 to your computer and use it in GitHub Desktop.
Getting list of linked libraries
// Getting list of linked libraries
uint32_t imageCount = _dyld_image_count();
char **names = calloc(sizeof(char *), imageCount);
for (uint32_t idx = 0; idx < imageCount; idx++)
{
names[idx] = (char *)_dyld_get_image_name(idx);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment