ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
utilities.c File Reference
#include "utilities.h"
#include <string.h>
Include dependency graph for utilities.c:

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START bool kissat_has_suffix (const char *str, const char *suffix)
 

Function Documentation

◆ kissat_has_suffix()

ABC_NAMESPACE_IMPL_START bool kissat_has_suffix ( const char * str,
const char * suffix )

Definition at line 7 of file utilities.c.

7 {
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}
Cube * p
Definition exorList.c:222