mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 22:20:12 +00:00
17 lines
267 B
C++
17 lines
267 B
C++
#include "string_extra.h"
|
|
#include <string.h>
|
|
|
|
char strequal(const char *s1, const char *s2)
|
|
{
|
|
if(strcmp(s1, s2) == 0)
|
|
return 1;
|
|
return 0;
|
|
}
|
|
|
|
char contains(const char *haystack, const char *needle)
|
|
{
|
|
if(strstr(haystack, needle) == NULL)
|
|
return 0;
|
|
return 1;
|
|
}
|