Created
February 29, 2012 21:59
-
-
Save ivira/1944777 to your computer and use it in GitHub Desktop.
Getting list of linked libraries
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
// 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