2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include <aros/asmcall.h>
12 #include "dos_intern.h"
14 AROS_UFP2(void, vfp_hook
,
15 AROS_UFPA(UBYTE
, chr
, D0
),
16 AROS_UFPA(struct vfp
*, vfp
, A3
)
19 /*****************************************************************************
22 #include <proto/dos.h>
24 AROS_LH2(LONG
, VPrintf
,
27 AROS_LHA(CONST_STRPTR
, format
, D1
),
28 AROS_LHA(IPTR
*, argarray
, D2
),
31 struct DosLibrary
*, DOSBase
, 159, Dos
)
34 Writes a formatted string to standard output.
37 format - RawDoFmt like format string
38 argarray - Pointer to array of formatting values
41 Number of bytes written or -1 for an error
53 *****************************************************************************/
58 BPTR file
= ((struct Process
*)FindTask(NULL
))->pr_COS
;
62 vfp
.DOSBase
= DOSBase
;
64 (void)RawDoFmt(format
, argarray
,
65 (VOID_FUNC
)AROS_ASMSYMNAME(vfp_hook
), &vfp
);
67 /* Remove the last character (which is a NUL character) */
72 ((struct FileHandle *)BADDR(file))->fh_Pos--;