1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Moved the IExec initialization in "simple_sprintf.c".

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14954 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-05-18 07:22:52 +00:00
parent d4aa0b04af
commit f6d20fee01
3 changed files with 21 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: simple_sprintf.c,v 1.1 2005-05-17 19:15:32 obarthel Exp $
* $Id: simple_sprintf.c,v 1.2 2005-05-18 07:22:52 obarthel Exp $
*
* :ts=4
*/
@ -54,14 +54,18 @@ _start(void)
SysBase = *(struct Library **)4;
#if defined(__amigaos4__)
{
IExec = (struct ExecIFace *)((struct ExecBase *)SysBase)->MainInterface;
}
#endif /* __amigaos4__ */
DOSBase = OpenLibrary("dos.library",37);
if(DOSBase == NULL)
goto out;
#if defined(__amigaos4__)
{
IExec = (struct ExecIFace *)((struct ExecBase *)SysBase)->MainInterface;
IDOS = (struct DOSIFace *)GetInterface(DOSBase, "main", 1, 0);
if(IDOS == NULL)
goto out;
@ -70,7 +74,7 @@ _start(void)
sprintf(string,"a %s c\n","b");
Write(Output(),string,strlen(string));
Write(Output(),string,(LONG)strlen(string));
out: