aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/stdlib.h
blob: 4670b8cf90da53a101d30a6734fb75bab398cc49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MELVIX_STDLIB_H
#define MELVIX_STDLIB_H

#include <stdint.h>

// String conversion
char *itoa(int n);
int atoi(char *str);
char *htoa(u32 n);
int htoi(char *str);

// Exit functions
void exit(u32 code);
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1

// Memory management
void *malloc(u32 size);
void free(void *addr);

#endif