Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
startswith.h
Go to the documentation of this file.
1
3
#pragma once
4
5
#include <assert.h>
6
#include <stdbool.h>
7
#include <stddef.h>
8
#include <string.h>
9
11
static
inline
bool
startswith
(
const
char
*
s
,
const
char
*
prefix
) {
12
assert(
s
!=
NULL
);
13
assert(
prefix
!=
NULL
);
14
15
return
strncmp(
s
,
prefix
, strlen(
prefix
)) == 0;
16
}
prefix
require define api prefix
Definition
gmlparse.y:17
NULL
node NULL
Definition
grammar.y:163
startswith
static bool startswith(const char *s, const char *prefix)
does the string s begin with the string prefix?
Definition
startswith.h:11
s
Definition
grammar.c:93
lib
util
startswith.h
Generated by
1.9.8