Checks if C string p starts with needle.
the C string to check
the string to look for
true if p starts with needle
const buf = "123".toStaticArray; const ptr = &buf[0]; assert(ptr.startsWith("")); assert(ptr.startsWith("1")); assert(ptr.startsWith("12")); assert(ptr.startsWith("123")); assert(!ptr.startsWith("1234"));
See Implementation
Checks if C string p starts with needle.