Browse Source

* Added an fprintf stub to the kernel.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
368eaeb708
2 changed files with 8 additions and 3 deletions
  1. +6
    -0
      kernel/kernel.c
  2. +2
    -3
      kernel/kernel.h

+ 6
- 0
kernel/kernel.c View File

@@ -232,6 +232,12 @@ int printf(const char *format, ...)
return 0;
}

int fprintf(FILE *stream, const char *format, ...)
{
/* FIXME */
return 0;
}

int sprintf(char *str, const char *format, ...)
{
/* FIXME */


+ 2
- 3
kernel/kernel.h View File

@@ -76,9 +76,7 @@ int rand(void);
int abs(int j);
void exit(int status);
void srand(unsigned int s);
int stdint;
int stdout;
int stderr;
FILE *stdin, *stdout, *stderr;

/* string.h functions */
void *memset(void *s, int c, size_t n);
@@ -100,6 +98,7 @@ char *fgets(char *s, int size, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
int fclose(FILE *fp);
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int sprintf(char *str, const char *format, ...);
int sscanf(const char *str, const char *format, ...);



Loading…
Cancel
Save