#include #include static SmiSubid oid[] = {1, 3, 6, 1, 2, 1, 88}; static void render(int flags) { char *s; s = smiRenderOID(sizeof(oid)/sizeof(SmiSubid), oid, flags); printf(">%s<\n", s); smiFree(s); } int main(int argc, char **argv) { int i; smiInit(NULL); for (i = 1; i < argc; i++) { smiLoadModule(argv[i]); } render(0); render(SMI_RENDER_NAME); render(SMI_RENDER_QUALIFIED); return 0; }