/*
* wildstar.c - toggles the star ('*') as a wildcard in AmigaDOS 2.0
*
* Bruno Costa - 29 Jan 91 - 29 Jan 91
*/
#include <exec/types.h>
#include <clib/dos_protos.h>
#include <pragmas/dos_pragmas.h>
extern struct DosLibrary *DOSBase;
#define print(msg) Write (Output(), msg, sizeof (msg))
void _main (void)
{
struct RootNode *root;
if (DOSBase->dl_lib.lib_Version < 36)
print ("Sorry, this program needs WB 2.0.\n");
else
{
root = DOSBase->dl_Root;
root->rn_Flags ^= RNF_WILDSTAR;
if (root->rn_Flags & RNF_WILDSTAR)
print ("The star ('*') is now a wildcard.\n");
else
print ("The star ('*') is now a normal character.\n");
}
_exit (0);
}