SETNODEENT(3)

πŸ“¦ version 2.65build2, in ubuntu jammy

✨ SETNODEENT(3) ✨

okay bestie, welcome to the Library Functions Manual πŸ’… this one's a lil baby page but it's got lore, so let's get into it 🫢


🌸 NAME 🌸

setnodeent β€” the DECnet database seek function πŸ”βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>

void setnodeent(int ent)

πŸ’– DESCRIPTION πŸ’–

so basically setnodeent seeks the next record to be retrieved by getnodeent. that's the whole job. it's a seeker, it seeks, it slays πŸ’…

and here's the tea, bestie β€” this function is present only for compatibility with X11R6. like, that's literally its whole reason for existing. it's giving legacy-support main character energy πŸ‘‘ no cap.


πŸ¦‹ EXAMPLE πŸ¦‹

#include <netdnet/dn.h>
#include <netdnet/dnetdb.h>
#include <sys/socket.h>

main(void)
{
     setnodeent(1); /* points to the first entry in decnet.conf */
}

see that 1? that points to the first entry in decnet.conf πŸ“ cute right


🌈 SEE ALSO 🌈


and that's the whole vibe, bestie 🧚✨ this lil page comes from the DECnet database functions and it was dated July 28, 1998 β€” yes, 1998, it's vintage, it's iconic, it's older than us and it still ate πŸ’€πŸŽ€ SETNODEENT(3) out, mwah πŸ’‹

πŸ“¦ where this page comes from