For example where an external C library is returning a fixed-size buffer containing a null-terminated string.
What would be the the equivalent of strcmp() to compare these two buffers? std.mem.eql
fails because they are different sizes.
var string1: [1024]u8 = undefined;
@memset(&string1, 0);
@memcpy(string1[0..3], "foo");
var string2 = "foo";
var result = std.mem.eql(u8, &string1, string2);
try std.testing.expect(result);