Subversion Repositories SvarDOS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
2
 * This file provides dummy functions that simulate kitten-enabled routines
3
 * without actually having kitten.
4
 *
244 mateuszvis 5
 * Copyright (C) 2015-2021 Mateusz Viste
219 mateuszvis 6
 */
7
 
8
#include <stdio.h>    /* vprintf() */
9
#include <stdarg.h>   /* va_list, va_start()... */
10
 
244 mateuszvis 11
#include "kitten/kitten.h"
12
 
219 mateuszvis 13
#include "kprintf.h"
14
 
15
void kitten_printf(short x, short y, char *fmt, ...) {
16
  va_list args;
17
  va_start(args, fmt);
244 mateuszvis 18
  vprintf(kittengets(x, y, fmt), args);
219 mateuszvis 19
  va_end(args);
20
}
21
 
22
void kitten_puts(short x, short y, char *fmt) {
244 mateuszvis 23
  puts(kittengets(x, y, fmt));
219 mateuszvis 24
}