Parcourir la source

Added boolean stuff sadly...

master
Ognjen Milan Robovic il y a 6 mois
Parent
révision
2228509751
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. +1
    -1
      xtandard.c
  2. +6
    -1
      xtandard.h

+ 1
- 1
xtandard.c Voir le fichier

@@ -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'));
}



+ 6
- 1
xtandard.h Voir le fichier

@@ -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);


Chargement…
Annuler
Enregistrer