dstrcmp

A string comparison functions that returns the same result as strcmp

Note: Strings are compared based on their ASCII values, no UTF-8 decoding.

Some C functions (e.g. qsort) require a int result for comparison.

@trusted
int
dstrcmp
()
(
scope const char[] s1
,
scope const char[] s2
)

See Also

Druntime's core.internal.string

Meta