Added boolean stuff sadly...
This commit is contained in:
parent
b986bae5cf
commit
2228509751
@ -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'));
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user