std1.0.0-beta-7 SafeC docs

std :: mem

Function std::safe_memcmp

#include <std/mem.h> source ยท definition

generic<T> int safe_memcmp([]const T a, []const T b)

Byte-wise comparison (memcmp) of a and b over their common length; when that prefix is equal, the shorter slice compares less.