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
 *
613 mateuszvis 5
 * Copyright (C) 2015-2022 Mateusz Viste
219 mateuszvis 6
 */
7
 
8
#include <stdio.h>    /* vprintf() */
9
#include <stdarg.h>   /* va_list, va_start()... */
10
 
613 mateuszvis 11
#include "svarlang.lib\svarlang.h"
244 mateuszvis 12
 
219 mateuszvis 13
#include "kprintf.h"
14
 
613 mateuszvis 15
void kitten_printf(short x, short y, ...) {
219 mateuszvis 16
  va_list args;
613 mateuszvis 17
  va_start(args, y);
18
  vprintf(svarlang_str(x, y), args);
219 mateuszvis 19
  va_end(args);
20
}