repo.or.cz
/
ppcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cpu.c: print_scop: take schedule as input
[ppcg.git]
/
util.h
blob
6c29a150e4d16d8767d9970aad18001739c29d9c
1
#ifndef UTIL_H
2
#define UTIL_H
3
4
#include <string.h>
5
6
/* Compare the prefix of "s" to "prefix" up to the length of "prefix".
7
*/
8
static
inline
int
prefixcmp
(
const char
*
s
,
const char
*
prefix
)
9
{
10
return
strncmp
(
s
,
prefix
,
strlen
(
prefix
));
11
}
12
13
#endif