shishi_safe_from_file(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_safe_from_file(3) πŸ’–

okay bestie, welcome to section 3 of the shishi manual β€” this is the page for shishi_safe_from_file, and yes it's exactly as iconic as it sounds 🫢


✨ NAME ✨

shishi_safe_from_file β€” an API function, and no, it is not "safe" like emotionally safe, it's a SAFE, capital letters, we'll get there πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_safe_from_file(Shishi * handle, Shishi_asn1 * safe, int
       filetype, const char * filename);

like. she's a four-argument girlie. she takes, she gives, she returns an int. no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you gotta have gotten it from shishi_init() first, periodt. no handle, no party.
  • Shishi_asn1 * safe β€” an output variable that ends up holding a newly allocated SAFE. yes bestie she allocates for you. that's her love language πŸ₯Ί
  • int filetype β€” an input variable saying what type of file we're reading, so go peek at Shishi_filetype if you need the tea on the options.
  • const char * filename β€” an input variable with the filename to read from. the actual file. the source of truth. iconic.

πŸ¦‹ DESCRIPTION πŸ¦‹

Read SAFE from file in specified TYPE.

that's it. that's the whole vibe. she reads a SAFE out of a file, using the file type you told her about, and hands it back to you in safe. lowkey the most straightforward function on this whole manual. obsessed πŸ’–


⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. iff!! that's "if and only if", she's being precise, she's being picky, and honestly? we respect it πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? not the vibe. tell the people:


Copyright Β© 2002-2022 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. fr fr, no royalty, just keep the notice 🌈


🧚 SEE ALSO 🧚

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual. iykyk β€” the info pages are where the real lore lives πŸ“–βœ¨


okay that's the whole page bestie, go forth and read your SAFEs, and remember: SHISHI_OK or it didn't happen πŸ’…

this was shishi 1.0.3, page shishi_safe_from_file(3), brought to you with love, allocated SAFEs, and zero bugs (allegedly) πŸŽ€πŸ¦‹πŸ’œ