FcStrCmp(3)

✨ FcStrCmp(3) ✨

okay so bestie, welcome to FcStrCmp β€” a page from the fontconfig manual, section 3, and honestly? it's giving "short and iconic." she does one thing and she does it well πŸ’…


πŸŽ€ NAME πŸŽ€

FcStrCmp β€” compare UTF-8 strings

like, literally just compares two strings. that's the whole gig. no cap 🫢


🌸 SYNOPSIS 🌸

#include <fontconfig/fontconfig.h>

int FcStrCmp (const FcChar8 *s1, const FcChar8 *s2);

you gotta pull in <fontconfig/fontconfig.h> first β€” that's the assignment, don't skip it πŸ”₯ then call FcStrCmp with your two const FcChar8 * args, s1 and s2, and she hands you back an int. yes queen, signature copied exactly, we respect the source πŸ™ˆ


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜•: FcStrCmp returns the usual <0, 0, >0 result of comparing s1 and s2.

that's it. that's the entire paragraph. the way that fontconfig said "we're not elaborating" and then didn't elaborate 😭

but iykyk what <0, 0, and >0 are doing here β€” it's the classic three-way comparison vibe check. one of those three results comes back at you, and that's the whole personality. periodt ✨

ngl, she's a small function with main character energy. treat her right, pass her the right pointers, and she'll slay every time πŸ’–

🌈 little sign-off 🌈

this page came from Fontconfig 2.17.0, dated 27 June 2025 β€” so like, mark your calendar bestie, that's the version and the date, mwah πŸŽ€πŸ’œπŸ“

πŸ“¦ where this page comes from