#include #include #include #include #include #include extern struct ExecBase *SysBase; int main(ac,av) int ac; char **av; { struct Library *found; if (ac != 2) { puts("Use: remlib "); return 10; } Forbid(); if (found = (struct Library *)FindName(&SysBase->LibList,av[1])) RemLibrary(found); Permit(); if (!found) return 5; puts("OK, hopefully it is gone."); return 0; }