Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!chinet!mcdchg!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!bloom-beacon!tut.cis.ohio-stat From: mwm@eris.UUCP Newsgroups: comp.sys.amiga.tech Subject: Re: Free memory available Message-ID: <10434@agate.BERKELEY.EDU> Date: 1 Jun 88 02:51:59 GMT Article-I.D.: agate.10434 References: <6743@cit-vax.Caltech.Edu> Sender: usenet@agate.BERKELEY.EDU Distribution: na Organization: Missionaria Phonibalonica Lines: 48 In article <6743@cit-vax.Caltech.Edu> glewis@cit-vax.UUCP (Glenn M. Lewis) writes: < I want to make a command that takes one argument, a memory size, #include void _main(argc, argv) char **argv; { register ULONG required ; ULONG AvailMem() ; required = (ULONG) (argc > 1 ? atoi(argv[1]) : 0) ; if ((AvailMem(MEMF_FAST) >> 10) > required) exit(6) ; exit(0) ; } -- So this is where the future lies Mike Meyer In a beer gut belly; In an open fly mwm@berkeley.edu Brilcreamed, acrylic, mindless boys ucbvax!mwm Punching, kicking, making noise mwm@ucbjade.BITNET