STREQL(3)
π STREQL(3) β streql() π
okay so this little icon is from SchilyΒ΄s LIBRARY FUNCTIONS, and it's literally just one tiny function doing one tiny job. No cap. π
πΈ NAME πΈ
streql() β compares two strings for equality. That's it. That's the whole assignment. π«Ά
β¨ SYNOPSIS β¨
BOOL streql(s1,s2)
char *s1, *s2;
π¦ DESCRIPTION π¦
streql() checks two strings for equality. Like, are they the same? It's giving "are we twins or not" energy. π
π RETURNS π
- Returns
TRUEif the strings1is the same length and has the same characters ass2. - Otherwise, returns
FALSE.
So yeah β same length plus same characters = slay. Anything else = nope. π
π NOTES π
When comparing two strings, the strings are not considered equal if one has padding (extra spaces).
Translation: extra spaces are a vibe killer here. Padding means not equal, periodt. π
mwah π β this page is from SchilyΒ΄s LIBRARY FUNCTIONS, page STREQL(3), written by Joerg Schilling, dated 2022/09/09. β¨
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms