Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
ef64d105
Commit
ef64d105
authored
Dec 08, 2015
by
Christoph Mallon
Browse files
util: Add 'strstart()'.
parent
b6a38ce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/adt/util.h
View file @
ef64d105
...
...
@@ -69,4 +69,13 @@ static inline bool streq(char const *const a, char const *const b)
return
strcmp
(
a
,
b
)
==
0
;
}
static
inline
char
const
*
strstart
(
char
const
*
str
,
char
const
*
start
)
{
do
{
if
(
*
start
==
'\0'
)
return
str
;
}
while
(
*
str
++
==
*
start
++
);
return
NULL
;
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment