#include <stdio.h>
#include <strings.h>
#include <proto/icon.h>
#include <proto/dos.h>

struct DiskObject *dobj;

main()
{    
       char **pointer_To_Tooltypes;
       char *Tooltypes[200];
       int      x=0,y=0;
       dobj = GetDiskObject("bbs:acp");
       if (dobj==NULL) 
          { 
            Exit(0);
          }
       pointer_To_Tooltypes=dobj->do_ToolTypes;
       printf("The Default Tool is %s\n",dobj->do_DefaultTool);
       printf("The Current ToolWindow is %s\n",dobj->do_ToolWindow);
       printf("The Current Stack Size is %d\n",dobj->do_StackSize);
       printf("The Current Type is %d\n",dobj->do_Type);
       printf("The Current Version is %d\n",dobj->do_Version);
       printf("The Current Position is %d,%d\n",dobj->do_CurrentX,dobj->do_CurrentY);
while(x!=400)
{       Tooltypes[x]=*pointer_To_Tooltypes;
    while(y!=128)
     {
        printf("%c",Tooltypes[x][y]);
        y++;
    }
    y=0;
    x++;
    
}
       FreeDiskObject(dobj);
}
