summaryrefslogtreecommitdiff
path: root/410kern/stdlib/stdlib.h
blob: b1bf18ad5f4170b2bc290e30273c9e4f1cb51539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _STDLIB_H_
#define _STDLIB_H_

#include <stddef.h>  /* For size_t, NULL */
#include <malloc.h>  /* "Listen to what the man says" */

long atol(const char *__str);
#define atoi(str) ((int)atol(str))

long strtol(const char *__p, char **__out_p, int __base);
unsigned long strtoul(const char *__p, char **__out_p, int __base);

#define RAND_MAX ((signed int)0x7fffffff)
int rand(void);
void srand(unsigned new_seed);

int abs(int val);

void qsort(void *a, size_t n, size_t es, int (*cmp)(char*, char*));

void panic(const char *, ...);

#endif