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
11static 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}
require define api prefix
Definition gmlparse.y:17
node NULL
Definition grammar.y:163
static bool startswith(const char *s, const char *prefix)
does the string s begin with the string prefix?
Definition startswith.h:11
Definition grammar.c:93