Last active
August 29, 2015 14:05
-
-
Save kinichiro/7a9879ac6136e42d9850 to your computer and use it in GitHub Desktop.
sample code for shl_get_r()
This file contains 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
/* test_shl_get_r.c */ | |
#include <stdio.h> | |
#include <dl.h> | |
int main() { | |
int idx; | |
struct shl_descriptor desc; | |
for(idx = -2; shl_get_r(idx, &desc) == 0; ++ idx) { | |
printf("[%03d] %8.8x %8.8x %8.8x %8.8x %8.8x %8.8x %s\n", | |
idx, | |
desc.tstart, desc.tend, desc.dstart, desc.dend, | |
desc.ltptr, desc.handle, desc.filename); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment