Fixed out-by-one error in previous commit.
[AROS.git] / workbench / c / LoadWB.c
blobeea2438ec165c80a3c0d75685f2ba0291173eca1
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id: LoadWB.c $
5 Desc:
6 Lang: English
7 */
9 #define DEBUG 0
10 #include <aros/debug.h>
12 #include <exec/types.h>
13 #include <proto/exec.h>
14 #include <workbench/workbench.h>
15 #include <proto/workbench.h>
17 #include <aros/shcommands.h>
19 /* Very minimal C:LoadWB */
20 AROS_SH0H(LoadWB, 42.2, "Load the default Workbench")
22 AROS_SHCOMMAND_INIT
24 struct Library *WorkbenchBase = OpenLibrary("workbench.library", 0);
25 if (WorkbenchBase) {
26 StartWorkbench(0, NULL);
27 CloseLibrary(WorkbenchBase);
29 return 0;
31 AROS_SHCOMMAND_EXIT