home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
gfx
/
superview-lib-9.12.lha
/
SuperView-Lib
/
Programmers
/
Example_Tools
/
ControlPad
/
CPD_Subs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-28
|
2KB
|
58 lines
/* ======================================================================== */
/* = Programmname : SimpleView_Subs V3.3 = */
/* = = */
/* ======================================================================== */
/* = Autor/Copyright : (c) 1990-94 by Andreas Ralph Kleinert. = */
/* = All rights reserved. = */
/* ======================================================================== */
/* = Funktion : Sub-Routines for SimpleView V3.3 = */
/* = = */
/* ======================================================================== */
/* = Compiler : SAS/C V6.5 = */
/* = = */
/* ======================================================================== */
#include <dos.h> /* to prevent multiple include, include this at FIRST ! */
#include <exec/types.h>
#include <exec/memory.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N (NULL) /* as usual */
void __stdargs K_Printf(char *formatstring, ...);
/* *************************************************** */
/* * * */
/* * K_Printf : Replacement for printf()-Output * */
/* * * */
/* *************************************************** */
#define KIP_BUFLEN (1200)
extern void Fmt(void);
void __stdargs K_Printf(char *formatstring, ...)
{
UBYTE *buffer;
buffer = (UBYTE *) AllocMem(KIP_BUFLEN, MEMF_CLEAR);
if(buffer)
{
RawDoFmt((APTR) formatstring, (APTR) (((ULONG *)&formatstring)+1), (APTR) &Fmt, (APTR) buffer);
Write(Output(), buffer, strlen(buffer));
FreeMem(buffer, KIP_BUFLEN);
}
}