Removed unneeded file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5402 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
#include <syscalls.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int __stdio_init(void); /* keep the compiler happy, these two are not supposed */
|
||||
int __stdio_deinit(void);/* to be called by anyone except crt0, and crt0 will change soon */
|
||||
|
||||
|
||||
int __stdio_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __stdio_deinit(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int printf(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
char buf[1024];
|
||||
int i;
|
||||
|
||||
va_start(args, fmt);
|
||||
i = vsprintf(buf, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
sys_write(1, buf, -1, strlen(buf));
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
int getchar(void)
|
||||
{
|
||||
char c;
|
||||
|
||||
sys_read(0, &c, 0, 1);
|
||||
return c;
|
||||
}
|
||||
Reference in New Issue
Block a user