File: nonstd.c

package info (click to toggle)
yaboot 1.3.16-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,508 kB
  • ctags: 3,009
  • sloc: ansic: 10,206; sh: 2,933; asm: 343; makefile: 241
file content (49 lines) | stat: -rw-r--r-- 729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Copyright */


#include "ctype.h"
#include "types.h"
#include "stddef.h"
#include "stdlib.h"
#include "ctype.h"
#include "prom.h"
#include "nonstd.h"

FILE *stdout;

int printf(const char *format, ...)
{
       va_list ap;
       va_start (ap, format);
       prom_vfprintf (prom_stdout, format, ap);
       va_end (ap);

       return 0;
}

int fprintf(FILE *stream, const char *format, ...)
{
       va_list ap;
       va_start (ap, format);
       prom_vfprintf (prom_stdout, format, ap);
       va_end (ap);

       return 0;
}

int fputs(const char *s, FILE *stream)
{
       prom_printf("%s", s);

       return 0;
}

int fflush(FILE *stream)
{
       return 0;
}

char *getenv(const char *name)
{
       return NULL;
}