Added boolean stuff sadly...

This commit is contained in:
Ognjen Milan Robovic 2023-11-18 17:33:07 -05:00
parent b986bae5cf
commit 2228509751
2 changed files with 7 additions and 2 deletions

View File

@ -576,7 +576,7 @@ int character_compare_array (char character, char * character_array) {
int character_count (char * string, char this, int from, int to, char stop) {
int count;
for (count = 0; (from != to) && (string [from] != stop); from += (int) ((to < from) ? -1 : 1)) {
for (count = 0; (from != to) && (string [from] != stop); from += ((to < from) ? -1 : 1)) {
count += (int) ((string [from] == this) || (this == '\0'));
}

View File

@ -21,6 +21,11 @@ It is distributed in the hope that it will be useful or harmful, it really depen
#define SIGNAL_SYSTEM (0X8000000)
enum {
FALSE,
TRUE
};
enum {
LOG_SUCCESS, LOG_WARNING, LOG_FAILURE, LOG_COMMENT,
LOG_COUNT
};
@ -126,7 +131,7 @@ extern int character_compare_array (char character, char * character_array);
extern int character_count (char * string, char this, int from, int to, char stop);
extern int string_length (char * string);
extern int string_length (char * string);
extern char * string_reverse_limit (char * string, int limit);
extern char * string_reverse (char * string);