EC_STR_STARTSWITH(3)
π ec_str_startswith β the Libecoli Programmer's Manual, but make it cute π
okay so bestie, we're in section 3 of the Libecoli Programmer's Manual and today's main character is ec_str_startswith β¨ it's giving "does this string start with that thing" and honestly? it's exactly that. no plot twists, no drama, just a little yes-or-no moment π
πΈ NAME πΈ
ec_str_startswith β returns 1 if the string starts with the given prefix, periodt π
β¨ SYNOPSIS β¨
#include <ecoli/string.h>
int ec_str_startswith(
const char *s,
const char *beginning
);
π¦ DESCRIPTION π¦
so you hand it two strings β s (the string you're checking) and beginning (the prefix you're hoping it starts with) β and it tells you whether s starts with beginning. if yes, you get a 1. it's that girl. simple, useful, iconic. no cap π«Ά
heads up: the return value is just an int, and per the NAME section it's 1 when the string starts with the given prefix. that's the whole vibe check, iykyk.
π SEE ALSO π
your little friend group of related functions, go say hi π
ec_str_parse_llint(3)ec_str_is_space(3)ec_strcmp_count(3)ec_str_parse_ullint(3)ec_str_quote(3)ec_str_wrap(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the whole page bestie, you ate that π thanks for reading, mwah π
signing off with the classic footer energy: this was libecoli, dated 2026-06-11, and you were reading EC_STR_STARTSWITH(3) the entire time β¨ππ
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms