/usr/share/doc/libgii1/examples/scope.c is in libgii1 1:1.0.2-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #include "config.h"
#include <ggi/gg.h>
int main(int ac, char **av) {
gg_scope scope;
void * addr;
int i;
if (ac < 2) {
printf("Usage: %s <location> [symbol] [symbol] ...\n", av[0]);
return 0;
}
if (ggInit() < 0) {
printf("ggInit failed.\n");
return 0;
}
scope = ggGetScope(av[1]);
if (scope == NULL) {
printf("ggGetScope(\"%s\") failed.\n", av[1]);
ggExit();
return 0;
}
for(i=2;i<ac;i++) {
addr = ggFromScope(scope, av[i]);
printf("%s : %p\n", av[i], addr);
}
ggDelScope(scope);
ggExit();
return 0;
}
|