vf_get_object_type(3)

πŸ“¦ version 1.13, in debian bookworm, ubuntu jammy, ubuntu noble

✨ vf_get_object_type ✨

okay bestie, welcome to the vf_get_object_type(3) page πŸ’– this one lives in the Library Functions Manual and honestly? it's giving tiny but mighty πŸ¦‹


🌸 NAME 🌸

vf_get_object_type β€” literally just vf_get_object_type(), that's the whole vibe πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <../vformat/vf_iface.h>

extern const char *vf_get_object_type(VF_OBJECT_T *p_object);

so you pull in that header and boom, the function is yours ✨


🫢 PARAMETERS 🫢

  • VF_OBJECT_T *p_object β€” the object you want to locate the type of πŸ‘€ like, hand it the thing and it tells you what the thing is.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• this function returns the type string that identifies the vformat object you pointed at. it's the string that comes after the 'BEGIN' mark β€” so think 'VCARD' or 'VNOTE' etc. πŸŽ€ no cap, that's the whole job. it's the lil name tag of the object, the "hi my name is" sticker, the vibe check in string form 🌈


⭐ RETURNS ⭐

Ptr to string. that's it bestie, a pointer to a string πŸ”₯

heads up: it's a pointer, not a copy, so don't go freeing it or messing with it, mwah πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, periodt πŸ‘‘ go read these too:


and that's the page!! πŸŽ€ this one was brought to you by c2man over there in vf_iface.h, dated 30 April 2003 β€” yeah, an elder, but she still slays πŸ’…βœ¨ bye bestie, go read an object's type πŸ¦‹πŸ’–

πŸ“¦ where this page comes from