2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
10 #include <proto/exec.h>
12 #include <aros/asmcall.h>
13 #include "dos_intern.h"
15 AROS_UFP2(void, vfp_hook
,
16 AROS_UFPA(UBYTE
, chr
, D0
),
17 AROS_UFPA(struct vfp
*, vfp
, A3
)
20 /*****************************************************************************
23 #include <proto/dos.h>
25 AROS_LH2(LONG
, VPrintf
,
28 AROS_LHA(CONST_STRPTR
, format
, D1
),
29 AROS_LHA(IPTR
*, argarray
, D2
),
32 struct DosLibrary
*, DOSBase
, 159, Dos
)
35 Writes a formatted string to standard output.
38 format - RawDoFmt like format string
39 argarray - Pointer to array of formatting values
42 Number of bytes written or -1 for an error
54 *****************************************************************************/
59 struct Process
*me
= (struct Process
*)FindTask(NULL
);
62 ASSERT_VALID_PROCESS(me
);
68 vfp
.DOSBase
= DOSBase
;
70 (void)RawDoFmt(format
, argarray
,
71 (VOID_FUNC
)AROS_ASMSYMNAME(vfp_hook
), &vfp
);
73 /* Remove the last character (which is a NUL character) */
78 ((struct FileHandle *)BADDR(file))->fh_Pos--;