m17n_object_ref(3m17n)
π m17n_object_ref β the m17n Library's little refcount glow-up π
okay so bestie, welcome to the m17n_object_ref(3m17n) page from The m17n Library β¨ this one is short, sweet, and honestly kind of iconic for how unbothered it is.
πΈ NAME πΈ
m17n_object_ref β (yeah the original just leaves this blank, so likeβ¦ it's the function that bumps a refcount. we move π
)
β¨ SYNOPSIS β¨
int m17n_object_ref (void * object)
π¦ DESCRIPTION π¦
okay so here's the tea: m17n_object_ref() increments the reference count of a managed object. that's it, that's the whole vibe.
specifically, it increments the reference count of the managed object pointed to by object. one (1) object, one (1) increment. slay π«Ά
π RETURN VALUE π
so like, what do you get back?
- if the resulting reference count fits in a 16-bit unsigned integer β meaning it's less than
0x10000β the function returns that resulting reference count. β¨ - otherwise (aka it overflowed the 16-bit situation π) it returns
-1.
that's it. that's the contract. no cap.</purl> (ok that was a typo but the energy stands, purple stays π)
π ERRORS π
this function never fails. not ever. not once. it's got main character energy and zero drama. π β¨
ngl that's the whole error section. no errno, no drama, no nothing. obsessed. π
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
and that's the page bestie!! π one function, one refcount, zero failures β literally the most low-maintenance thing in the whole library πΈ this was Version 1.8.4, dated Mon Sep 25 2023, and honestly it ate. periodt. π¦π
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms