zzip_rewinddir(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ zzip_rewinddir β€” bestie edition ✨

okay so you're in the zzip part of the manual, page zzip_rewinddir(3), and it's literally from the zziplib Function List. sit down, grab a strawberry πŸ“, we're doing directory rewind but make it cute.


🌸 NAME 🌸

zzip_rewinddir, zzip_telldir, zzip_seekdir, zzip_telldir32, zzip_seekdir32 β€” rewind. yeah. that's the whole vibe. the way that one word carries five functions πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <zzip/lib.h>

void
zzip_rewinddir(ZZIP_DIR* dir)

zzip_off_t
zzip_telldir(ZZIP_DIR* dir)

void
zzip_seekdir(ZZIP_DIR* dir, zzip_off_t offset)

long
zzip_telldir32(ZZIP_DIR* dir)

void
zzip_seekdir32(ZZIP_DIR* dir, long offset)

look at her. five little signatures. no cap, that's the whole roster πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

So zzip_rewinddir is giving rewinddir(2), but for a realdir or for a zipfile that's standing in for a directory. iconic behaviour honestly.

The ZZIP_DIR handle you get back from zzip_opendir has a flag on it saying whether it's a realdir or a zipfile β€” she tells you which one she is, she's not mysterious like that.

🫢 heads up bestie: when it's a zipfile, the filenames will include the filesubpath. so take care. fr fr, don't get caught out. 😭

zzip_telldir is the equivalent of telldir(2) for a realdir or zipfile. tell me where we are, queen.

zzip_seekdir is the equivalent of seekdir(2) for a realdir or zipfile. jump to it. slay.

zzip_telldir32 is there for the users who can not use any largefile-mode. she's the accessible option, we love her for it. πŸ’œ

zzip_seekdir32 is also for the users who can not use any largefile-mode. same energy, matching set. πŸŽ€


⭐ AUTHOR ⭐

Guido Draheim <guidod@gmx.de> β€” the icon who made all of this happen. bow down. πŸ‘‘


Copyright (c) Guido Draheim, use under copyleft (LGPL, MPL). read it, respect it, love it.


and that's the tea, bestie πŸ¦‹ this was page zzip_rewinddir(3) from zziplib, version 0.13.78, and yes she is exactly as iconic as she sounds. mwah. πŸ’–βœ¨