MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxStringEndsWith

Function fxStringEndsWith

xs/tools/xst262.c:1334–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332}
1333
1334int fxStringEndsWith(const char *string, const char *suffix)
1335{
1336 size_t stringLength = strlen(string);
1337 size_t suffixLength = strlen(suffix);
1338 return (stringLength >= suffixLength) && (0 == strcmp(string + (stringLength - suffixLength), suffix));
1339}
1340
1341void fxWriteConfiguration(txPool* pool, char* path)
1342{

Callers 2

xst262.cFile · 0.85
fxRunDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected