vf_create_object(3)

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

πŸ’– vf_create_object β€” Library Functions Manual, bestie πŸ’–

okay so real quick, this is a page from the Library Functions Manual (vf_create_object(3), section 3, iykyk) and it's about making a brand new object from absolutely nothing. iconic behaviour honestly.


✨ NAME ✨

vf_create_object β€” literally vf_create_object(), that's it, that's the name πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

extern VF_OBJECT_T *vf_create_object
(
     const char *p_type,
     VF_OBJECT_T *p_parent
);

so you pull in that header, call the thing, hand it a type and maybe a parent, and boom πŸ’…


🌸 PARAMETERS 🌸

  • const char *p_type β€” the type of object you wanna create. yeah. that's the one 🫢
  • VF_OBJECT_T *p_parent β€” the parent object, if there even is one. no parent? no problem, it's optional vibes.

πŸ’œ DESCRIPTION πŸ’œ

It creates an empty vformat object. that's the whole thing. brand new, empty, zero notes, main character energy, ready for you to fill it up however you want ✨


πŸ”₯ RETURNS πŸ”₯

A pointer to the object if it got created, otherwise NULL. so like. check it, bestie. don't be out here dereferencing NULL 😭


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long but every single one of these is a friend of ours, no skips, periodt:

vf_parse_init(3), vf_parse_text(3), vf_parse_end(3), vf_read_file(3), vf_write_file(3), vf_get_next_object(3), vf_get_object_type(3), vf_get_property(3), vf_get_property_ex(3), vf_get_next_property(3), vf_get_prop_value(3), vf_set_prop_value(3), vf_get_prop_value_string(3), vf_get_prop_name_string(3), vf_set_prop_name_string(3), vf_get_prop_name(3), vf_get_prop_value_object(3), vf_set_prop_value_object(3), vf_set_prop_value_string(3), vf_set_prop_value_base64(3), vf_get_prop_value_base64(3), vf_set_property_from_file(3), vf_delete_object(3), vf_delete_prop(3), vf_find_prop_qual_index(3), vf_is_modified(3), vf_find_charset(3), vf_date_string_to_time(3), vf_period_string_to_time(3), vf_period_time_to_string(3), vf_set_prop_value_time(3), vf_get_prop_value_time(3)


and that's the whole page, babe 🌈 this little beauty was generated by c2man from vf_iface.h, dated 30 April 2003, and it lives in the vf_create_object(3) section of the manual. mwah πŸ’‹ go forth and create objects πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from