home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / v2 / starburs.lzh / starburst.c next >
Encoding:
C/C++ Source or Header  |  1990-07-11  |  438 b   |  26 lines

  1. /** starburst.c
  2. *
  3. *   Toggles the bit that controls whether asterisk wildcards are allowed
  4. *   or not. Thanks to Randall jesup!
  5. *
  6. *   W.G.J. Langeveld, July 1990.
  7. *
  8. **/
  9. #include <exec/types.h>
  10. #include <dos/dos.h>
  11. #include <dos/dosextens.h>
  12.  
  13. struct DosLibrary *lib, *OpenLibrary();
  14.  
  15. main()
  16. {
  17.    lib = OpenLibrary("dos.library", 0L);
  18.  
  19.    ((struct RootNode *) (lib->dl_Root))->rn_Flags ^= 0x01000000;
  20.  
  21.    CloseLibrary(lib);
  22.  
  23.    exit(0);
  24. }
  25.  
  26.