Path: utzoo!attcan!uunet!sugar!peter From: peter@sugar.uu.net (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: A little help please... Message-ID: <3513@sugar.uu.net> Date: 25 Feb 89 15:38:43 GMT References: <12492@gryphon.COM> Organization: Sugar Land Unix - Houston, TX Lines: 20 This is the code I use to find the stack size for launch... ---------[from launch.shar]--------- Xstruct Process *FindTask(); ... X struct Process *me; X struct CommandLineInterface *cli; X long stack; ... X if(stack == 0) { X me = FindTask(0); X if(me->pr_CLI) { X cli = (struct CommandLineInterface *)(me->pr_CLI<<2); X stack = cli->cli_DefaultStack<<2; /* DefaultStack is in Longwords */ X } else X stack = me->pr_StackSize; X } -- Peter "Have you hugged your wolf today" da Silva `-_-' Hackercorp. ...texbell!sugar!peter, or peter@sugar.uu.net 'U`