MCPcopy Create free account
hub / github.com/DistroAV/DistroAV / safe_strcmp

Function safe_strcmp

src/ndi-source.cpp:876–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876int safe_strcmp(const char *str1, const char *str2)
877{
878 if (str1 == str2)
879 return 0;
880 if (!str1)
881 return -1;
882 if (!str2)
883 return 1;
884 return strcmp(str1, str2);
885}
886
887bool tally_on_preview(obs_source_t *source)
888{

Callers 1

ndi-source.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected