2
* tag: simple function library
4
* Copyright (C) 2003 Stefan Reinauer
6
* See the file "COPYING" for further information about
7
* the copyright and warranty status of this work.
11
#include "asm/types.h"
13
#include "libc/stdlib.h"
14
#include "libc/vsprintf.h"
15
#include "kernel/kernel.h"
17
/* Format a string and print it on the screen, just like the libc
20
int printk( const char *fmt, ... )
27
i = vsnprintf(buf, sizeof(buf), fmt, args);
35
// dumb quick memory allocator until we get a decent thing here.
37
#define MEMSIZE 128*1024
38
static char memory[MEMSIZE];
39
static void *memptr=memory;
40
static int memsize=MEMSIZE;
42
void *malloc(int size)