Implement starts_with() function

This commit is contained in:
Bender Dev 2025-03-06 18:37:38 -05:00
parent 77fe176a03
commit a5fa9147bc
1 changed files with 5 additions and 0 deletions

View File

@ -1455,3 +1455,8 @@ int ossl_bio_print_hex(BIO *out, unsigned char *buf, int len)
OPENSSL_free(hexbuf);
return result;
}
static int starts_with(const char *str, const char *prefix)
{
return strncmp(str, prefix, strlen(prefix)) == 0;
}