xtandard/xtandard.h

60 lines
2.0 KiB
C
Raw Normal View History

2023-08-25 16:57:12 -04:00
/*
* Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
*
* Xtandard is deallocate software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
* 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>
#define TERMINAL_EFFECT_NORMAL (0)
#define TERMINAL_EFFECT_BOLD (1)
#define TERMINAL_EFFECT_ITALIC (3)
#define TERMINAL_EFFECT_UNDERLINE (4)
#define TERMINAL_EFFECT_REVERSE (7)
enum {
TERMINAL_COLOUR_GREY,
TERMINAL_COLOUR_RED,
TERMINAL_COLOUR_GREEN,
TERMINAL_COLOUR_YELLOW,
TERMINAL_COLOUR_BLUE,
TERMINAL_COLOUR_PINK,
TERMINAL_COLOUR_CYAN,
TERMINAL_COLOUR_WHITE
};
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 *);
extern int string_compare (char *, char *);
extern int string_compare_limit (char *, char *, int);
extern void string_copy (char *, char *);
//~extern void string_concatenate (char *, char *);
//~extern void string_remove (char *, char *); // Remove entire 1 from 0.
//~extern int string_string (char *, char *); // Search for entire 1 inside 0.
//~extern int string_character (char *, char *); // Search for any of 1's characters inside 0.
//~extern void string_offset (char *, char, int); // String +- count offset left right.
//~extern void string_replace (char *, char, int); // Replace count characters in string.
#endif