home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 91
/
af091a.adf
/
af91a3.lzx
/
prgs
/
Library
/
stksize.b
< prev
Wrap
Text File
|
2018-09-21
|
401b
|
20 lines
{*
** Show the stack size of the current process.
**
** Author: David J Benn
** Date: 7th October 1995
*}
#include <dos/dosextens.h>
LIBRARY "exec.library"
DECLARE FUNCTION ADDRESS FindTask(ADDRESS taskName) LIBRARY exec
DECLARE STRUCT Process *myProcess
myProcess = FindTask(NULL)
IF myProcess <> NULL THEN
MsgBox "Stack size is:"+STR$(myProcess->pr_StackSize)+" bytes.","Continue"
END IF