EC_STRCMP_COUNT(3)

✨ EC_STRCMP_COUNT(3) ✨

okay so bestie, welcome to the Libecoli Programmer's Manual πŸ’– this one's a lil function from ecoli/string.h and honestly? she's lowkey iconic for what she does. no cap.


🌸 NAME 🌸

ec_strcmp_count β€” literally counts how many characters at the start of two strings are the exact same 🫢 like a vibe check for string prefixes.


πŸŽ€ SYNOPSIS πŸŽ€

#include <ecoli/string.h>

size_t ec_strcmp_count(
    const char   *s1,
    const char   *s2
);

it's giving two const char * besties walking in, and you get back a size_t β€” the count of matching characters from the beginning. periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

if you're obsessed with this one (and you should be), go hang out with her friends:

the whole squad fr fr 🌈


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


this page is from libecoli, dated 2026-06-11, and it lives under the name EC_STRCMP_COUNT(3) πŸŽ€ mwah, go count some matching characters bestie, you got this πŸ’–βœ¨πŸ¦‹
πŸ“¦ where this page comes from