Function flamegpu::util::dstrcmp

Function Documentation

__device__ __forceinline__ int flamegpu::util::dstrcmp(const char *s1, const char *s2)

Device implementations of required string.h functionality strcmp() - Compare two strings, return 0 if equal, otherwise return suggests order

Note

Implementation based on https://stackoverflow.com/a/34873763/1646387

Parameters:
  • s1 – First string to be compared

  • s2 – Second string to be compared