2018-03-16 16:40:23 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
extern void exit(int status);
|
|
|
|
extern char * getenv(const char *name);
|
|
|
|
|
|
|
|
extern void *malloc(size_t size);
|
|
|
|
extern void free(void *ptr);
|
|
|
|
extern void *calloc(size_t nmemb, size_t size);
|
|
|
|
extern void *realloc(void *ptr, size_t size);
|
|
|
|
|
|
|
|
extern void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void*,const void*));
|
|
|
|
|
|
|
|
extern int system(const char * command);
|
|
|
|
|
|
|
|
extern int abs(int j);
|
|
|
|
|
2018-05-02 13:25:03 +03:00
|
|
|
extern int putenv(char * name);
|
|
|
|
extern int setenv(const char *name, const char *value, int overwrite);
|
|
|
|
|
2018-05-02 13:43:33 +03:00
|
|
|
extern double atof(const char * nptr);
|
2018-05-04 07:01:55 +03:00
|
|
|
extern int atoi(const char * nptr);
|
2018-05-09 10:55:10 +03:00
|
|
|
extern long atol(const char * nptr);
|
|
|
|
extern long int labs(long int j);
|
2018-05-04 07:01:55 +03:00
|
|
|
|
2018-05-09 13:43:02 +03:00
|
|
|
extern void srand(unsigned int);
|
|
|
|
extern int rand(void);
|
|
|
|
|
|
|
|
#define RAND_MAX 0x7FFFFFFF
|
|
|
|
|
2018-06-10 13:31:18 +03:00
|
|
|
extern void abort(void);
|
2018-05-09 13:43:02 +03:00
|
|
|
|
2018-05-04 07:01:55 +03:00
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define EXIT_FAILURE 1
|
2018-05-02 13:43:33 +03:00
|
|
|
|
2018-03-16 16:40:23 +03:00
|
|
|
#define NULL 0
|