match_strlcpy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– match_strlcpy(9) β€” NAME πŸ’–

okay so bestie, welcome to the match_strlcpy(9) page in the Kernel API Manual β€” this one is short and sweet and honestly kind of iconic. It copies the characters from a substring_t to a sized buffer. periodt. ✨

🌸 SYNOPSIS 🌸

size_t match_strlcpy (char *dest , const substring_t *src , size_t size
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dest β€” where to copy to. this is the destination, the place things land. 🫢
  • src β€” the substring_t to copy. she's the source, the main character. πŸ’…
  • size β€” size of destination buffer. literally the size limit of the destination buffer, no more no less. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does: it copies the characters in the substring_t src into the c-style string dest. Copying is capped β€” it copies no more than size - 1 characters, plus the terminating NUL. That's the whole vibe: room for the NUL, and keep it moving. πŸ“

⭐ RETURN ⭐

It returns the length of src. yep, that's the tea. β˜•

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./lib/parser.c, plus this whole friend group:


mwah πŸ’‹ this has been your match_strlcpy(9) moment β€” brought to you by ./lib, October 2026. go be amazing, bestie πŸ’œ

πŸ“¦ where this page comes from