2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*****************************************************************************
25 Retrieves the information stored in the given local variable.
29 NAME - The name of the local variable.
33 Standard DOS error codes.
41 This will retrieve the secondary return code of the last command
54 30-Jul-1997 laguest Corrected a few things in the source
55 27-Jul-1997 laguest Initial inclusion into the AROS tree
57 ******************************************************************************/
59 #include <proto/dos.h>
62 #include <dos/rdargs.h>
64 #include <exec/types.h>
66 #include <aros/shcommands.h>
68 #define BUFFER_SIZE 256
71 AROS_SHA(STRPTR
, ,NAME
,/A
,NULL
))
76 char Var_Value
[BUFFER_SIZE
];
79 Var_Length
= GetVar(SHArg(NAME
), &Var_Value
[0], BUFFER_SIZE
,
84 Printf("%s\n", Var_Value
);
89 SetIoErr(ERROR_OBJECT_NOT_FOUND
);
90 PrintFault(IoErr(), "Get");