2023-08-25 16:57:12 -04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
|
|
|
|
*
|
2023-08-28 09:02:20 -04:00
|
|
|
* Xtandard is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
|
2023-08-25 16:57:12 -04:00
|
|
|
* And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
|
|
|
|
* It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XTANDARD_HEADER
|
|
|
|
#define XTANDARD_HEADER
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2023-08-28 09:02:20 -04:00
|
|
|
enum {
|
|
|
|
EFFECT_NORMAL,
|
|
|
|
EFFECT_BOLD,
|
|
|
|
EFFECT_DARK,
|
|
|
|
EFFECT_ITALIC,
|
|
|
|
EFFECT_UNDERLINE,
|
|
|
|
EFFECT_BLINK,
|
|
|
|
EFFECT_UNDEFINED,
|
|
|
|
EFFECT_REVERSE
|
|
|
|
};
|
2023-08-25 16:57:12 -04:00
|
|
|
|
|
|
|
enum {
|
2023-08-28 09:02:20 -04:00
|
|
|
COLOUR_GREY,
|
|
|
|
COLOUR_RED,
|
|
|
|
COLOUR_GREEN,
|
|
|
|
COLOUR_YELLOW,
|
|
|
|
COLOUR_BLUE,
|
|
|
|
COLOUR_PINK,
|
|
|
|
COLOUR_CYAN,
|
|
|
|
COLOUR_WHITE
|
2023-08-25 16:57:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern void in (void *, int);
|
|
|
|
extern void out (void *, int);
|
|
|
|
|
|
|
|
extern void fatal_failure (int, char *);
|
|
|
|
|
|
|
|
extern void * allocate (int);
|
|
|
|
extern void * reallocate (void *, int);
|
|
|
|
extern void * deallocate (void *);
|
|
|
|
extern void * memorize (int);
|
|
|
|
|
|
|
|
extern void * record (void);
|
|
|
|
|
|
|
|
extern int string_length (char *);
|
|
|
|
extern void string_delete (char *);
|
|
|
|
extern void string_reverse (char *);
|
|
|
|
|
2023-08-28 18:53:13 -04:00
|
|
|
extern int string_compare (char *, char *);
|
|
|
|
extern void string_copy (char *, char *);
|
|
|
|
extern void string_concatenate (char *, char *);
|
|
|
|
|
2023-08-28 09:02:20 -04:00
|
|
|
extern int string_compare_limit (char *, char *, int);
|
|
|
|
extern void string_copy_limit (char *, char *, int);
|
|
|
|
extern void string_concatenate_limit (char *, char *, int);
|
2023-08-25 16:57:12 -04:00
|
|
|
|
|
|
|
#endif
|