gd_tell64(3)

✨ gd_tell64 β€” bestie edition ✨

okay so this is gd_tell64(3), straight out of the GETDATA manual, and it's the version of gd_tell(3) that went and got itself largefile support. she's the same girl, just with bigger pockets. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#define GD_64BIT_API
#include <getdata.h>

gd_off64_t gd_tell64(DIRFILE *dirfile, const char *field_code);

πŸ’– DESCRIPTION πŸ’–

So listen. This is basically gd_tell(3) but she uses an explicitly 64-bit offset type β€” that's gd_off64_t, bestie β€” and she does it no matter how big off_t happens to be. Iconic behaviour, honestly. πŸ¦‹

heads up though: she's only guaranteed to be there for you if GD_64BIT_API is defined before you #include <getdata.h>. define it first. first!! not after. i'm serious. 😭

And here's the little twin-sister situation going on:

  • If off_t is already a 64-bit type, then this function is the same as gd_tell(3). literally identical, no drama, they're the same person. πŸ’–
  • Otherwise, gd_tell(3) becomes the version of this function that uses a 32-bit off_t. so like, same energy, smaller container. πŸ“

periodt. that's the whole vibe. 🌸


🌈 SEE ALSO 🌈


and that's a wrap, my love 🫢 this page was brought to you by Version 0.10.0, dated 25 December 2016 β€” yes, a christmas gift, we love a festive release. mwah πŸ’œπŸ‘‘