Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 243 → Rev 244

/pkginst/kprintf.c
2,23 → 2,23
* This file provides dummy functions that simulate kitten-enabled routines
* without actually having kitten.
*
* Copyright (C) 2015-2016 Mateusz Viste
* Copyright (C) 2015-2021 Mateusz Viste
*/
 
#include <stdio.h> /* vprintf() */
#include <stdarg.h> /* va_list, va_start()... */
 
#include "kitten/kitten.h"
 
#include "kprintf.h"
 
void kitten_printf(short x, short y, char *fmt, ...) {
va_list args;
va_start(args, fmt);
vprintf(fmt, args);
vprintf(kittengets(x, y, fmt), args);
va_end(args);
x = y;
}
 
void kitten_puts(short x, short y, char *fmt) {
x = y;
puts(fmt);
puts(kittengets(x, y, fmt));
}