finix/libk/include/stdlib.h

26 lines
741 B
C
Raw Normal View History

2023-07-16 06:54:32 +00:00
#pragma once
#include <stddef.h>
char itoc(int i);
int ctoi(char c);
int atoi(const char* s);
long int atol(const char* s);
long long int atoll(const char* s);
char *itoa(int n, char *buffer, int radix);
char *ltoa(long int n, char *buffer, int radix);
char *utoa(unsigned int n, char *buffer, int radix);
char *ultoa(unsigned long int n, char *buffer, int radix);
char *ftoa(float f, char *buffer);
int strtoi(const char *str, char **endptr, int base);
long int strtol(const char *str, char **endptr, int base);
long long int strtoll(const char *str, char **endptr, int base);
extern void *malloc(size_t size);
extern void *realloc(void *ptr, size_t size);
extern void *calloc(size_t count, size_t size);
extern void free(void *ptr);