sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
stdio.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright (c) 2003 Marcus R. Brown <mrbrown@0xd6.org>
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
17
#ifndef __STDIO_H__
18
#define __STDIO_H__
19
20
#include <stdarg.h>
21
#include <
irx.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
extern
int
printf(
const
char
*format, ...);
28
extern
int
getchar(
void
);
29
extern
int
putchar(
int
c);
30
extern
int
puts(
const
char
*s);
31
extern
char
*gets(
char
*s);
32
extern
int
fdprintf(
int
fd,
const
char
*format, ...);
33
extern
int
fdgetc(
int
fd);
34
extern
int
fdputc(
int
c,
int
fd);
35
extern
int
fdputs(
const
char
*s,
int
fd);
36
extern
char
*fdgets(
char
*buf,
int
fd);
37
38
// The following was introduced in export version 1.3 (around SDK 2.3)
39
extern
int
vfdprintf(
int
fd,
const
char
*format, va_list ap);
40
41
#define stdio_IMPORTS_start DECLARE_IMPORT_TABLE(stdio, 1, 2)
42
#define stdio_IMPORTS_end END_IMPORT_TABLE
43
44
#define xstdio_IMPORTS_start DECLARE_IMPORT_TABLE(stdio, 1, 3)
45
#define xstdio_IMPORTS_end END_IMPORT_TABLE
46
47
#define I_printf DECLARE_IMPORT(4, printf)
48
#define I_getchar DECLARE_IMPORT(5, getchar)
49
#define I_putchar DECLARE_IMPORT(6, putchar)
50
#define I_puts DECLARE_IMPORT(7, puts)
51
#define I_gets DECLARE_IMPORT(8, gets)
52
#define I_fdprintf DECLARE_IMPORT(9, fdprintf)
53
#define I_fdgetc DECLARE_IMPORT(10, fdgetc)
54
#define I_fdputc DECLARE_IMPORT(11, fdputc)
55
#define I_fdputs DECLARE_IMPORT(12, fdputs)
56
#define I_fdgets DECLARE_IMPORT(13, fdgets)
57
#define I_vfdprintf DECLARE_IMPORT(14, vfdprintf)
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* __STDIO_H__ */
irx.h
core
stdio
include
stdio.h
Generated by
1.18.0