SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
stdlib.h
Go to the documentation of this file.
1
#ifndef _STDLIB_H_
2
#define _STDLIB_H_
3
4
#include <
stddef.h
>
5
#include <
strtoul.h
>
// IWYU pragma: export
6
#include <
wchar.h
>
7
8
#define RAND_MAX 32767
9
10
void
srand
(
unsigned
int
seed
);
11
int
rand
(
void
);
12
void
exit
(
int
status);
13
size_t
wcstombs
(
char
* dest,
const
wchar_t
* src,
size_t
max);
14
int
atoi
(
const
char
* str);
15
16
typedef
int (*
_compare_function
)(
const
void
*,
const
void
*);
17
void
qsort
(
void
*,
size_t
,
size_t
,
_compare_function
);
18
19
#ifdef __MWERKS__
20
#define abs(x) __abs(x)
21
#else
22
static
inline
int
abs
(
int
x)
23
{
24
int
mask
= x >> 31;
25
return
(x +
mask
) ^
mask
;
26
}
27
#endif
28
29
#endif
wcstombs
size_t wcstombs(char *dest, const wchar_t *src, size_t max)
Widechar to multibyte string conversion, doesn't care about proper conversion though?
Definition
mbstring.c:5
exit
void exit(int status)
Definition
abort_exit.c:20
srand
void srand(unsigned int seed)
Definition
rand.c:11
rand
int rand(void)
Definition
rand.c:5
abs
#define abs(x)
Definition
ftmariospecialhi.c:70
seed
u32 seed
Definition
random.c:3
_compare_function
int(* _compare_function)(const void *, const void *)
Definition
stdlib.h:16
atoi
int atoi(const char *str)
Definition
strtoul.c:210
qsort
void qsort(void *, size_t, size_t, _compare_function)
mask
int mask
Definition
state.c:130
stddef.h
strtoul.h
wchar.h
src
MSL
stdlib.h
Generated by
1.17.0