ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
utilities.c
Go to the documentation of this file.
1#include "utilities.h"
2
3#include <string.h>
4
6
7bool kissat_has_suffix (const char *str, const char *suffix) {
8 const char *p = str;
9 while (*p)
10 p++;
11 const char *q = suffix;
12 while (*q)
13 q++;
14 while (p > str && q > suffix)
15 if (*--p != *--q)
16 return false;
17 return q == suffix;
18}
19
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
Cube * p
Definition exorList.c:222
ABC_NAMESPACE_IMPL_START bool kissat_has_suffix(const char *str, const char *suffix)
Definition utilities.c:7