libkernaux/include/kernaux/stdlib.h

38 lines
665 B
C
Raw Normal View History

2020-11-30 00:00:47 +00:00
#ifndef KERNAUX_INCLUDED_STDLIB
#define KERNAUX_INCLUDED_STDLIB 1
2020-11-30 00:15:36 +00:00
#define KERNAUX_NULL ((void*)0)
2020-11-30 00:12:25 +00:00
#define KERNAUX_FALSE ((kernaux_bool)0)
#define KERNAUX_TRUE ((kernaux_bool)1)
2020-11-30 00:00:47 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2020-11-30 00:12:25 +00:00
typedef unsigned char kernaux_bool;
2020-11-30 00:25:30 +00:00
void kernaux_memset(
void *buffer,
unsigned char value,
unsigned long size
)
__attribute__((nonnull));
unsigned int kernaux_strlen(const char *s) __attribute__((nonnull));
char *kernaux_strncpy(
char *dest,
const char *src,
unsigned long slen
)
__attribute__((nonnull));
2020-11-30 00:48:58 +00:00
void kernaux_itoa(int d, char *buf, int base) __attribute__((nonnull));
2020-11-30 00:25:30 +00:00
2020-11-30 00:00:47 +00:00
#ifdef __cplusplus
}
#endif
#endif