PCAP_TSTAM...AME_TO_VAL(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… pcap_tstamp_type_name_to_val β€” bestie edition πŸ’…

okay so real quick, this page lives in the Library Functions Manual (that's the manual name, iykyk) and it's all about one lil function that turns a time stamp type name into a time stamp type value. iconic behavior honestly.


✨ NAME ✨

pcap_tstamp_type_name_to_val β€” get the time stamp type value corresponding to a time stamp type name πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pcap/pcap.h>

int pcap_tstamp_type_name_to_val(const char *name);

🌸 DESCRIPTION 🌸

okay so here's the vibe: pcap_tstamp_type_name_to_val() translates a time stamp type name to the corresponding time stamp type value. that's it, that's the whole job. and the translation is case-insensitive, so like, go ahead and scream it or whisper it, pcap_tstamp_type_name_to_val() does not care πŸ’…

🫢 RETURN VALUE 🫢

pcap_tstamp_type_name_to_val() returns the time stamp type value on success, and PCAP_ERROR on failure. no cap. 😭

πŸ’€ BACKWARD COMPATIBILITY πŸ’€

this function became available in libpcap release 1.2.1. so if you're on something older than that... bestie. upgrade. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, bestie! go forth and translate those names fr fr πŸ§šπŸ’œ

~ signed, sealed, delivered by the Library Functions Manual, dated 22 August 2018 ~ πŸ“β­

πŸ“¦ where this page comes from