.. _program_listing_file_include_flamegpu_util_dstring.h: Program Listing for File dstring.h ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/flamegpu/util/dstring.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef INCLUDE_FLAMEGPU_UTIL_DSTRING_H_ #define INCLUDE_FLAMEGPU_UTIL_DSTRING_H_ #include namespace flamegpu { namespace util { __device__ __forceinline__ int dstrcmp(const char *s1, const char *s2) { const unsigned char *p1 = (const unsigned char *)s1; const unsigned char *p2 = (const unsigned char *)s2; while (*p1 && *p1 == *p2) ++p1, ++p2; return (*p1 > *p2) - (*p2 > *p1); } } // namespace util } // namespace flamegpu #endif // INCLUDE_FLAMEGPU_UTIL_DSTRING_H_