shishi_safe_to_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_to_file(3) ✨

okay bestie so we're in the shishi_safe_to_file section of the manual, part of the shishi lineup, and this one is literally just "save the SAFE thing to a file, bestie" πŸ’Ύβœ¨


🌸 NAME 🌸

shishi_safe_to_file β€” it's an API function, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

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

like. there it is. the whole vibe in four lines πŸŽ€


πŸ“ ARGUMENTS πŸ“

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). it's giving "i was allocated responsibly" ✨
  • Shishi_asn1 safe β€” the SAFE that we're saving. yes. the SAFE. that SAFE. 🫢
  • int filetype β€” input variable telling us what type of file to write, okay? go look at Shishi_filetype for the deets, i'm not making it up πŸ”₯
  • const char * filename β€” input variable holding the filename to write to. the destination. the moment. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Write that SAFE to a file, in the type you specified. simple as.

⚠️ but listen β€” the file will be truncated if it already exists. like, gone. poof. if there was stuff in there, bestie, it's not there anymore 😭 so double-check that filename, fr fr.

⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff it worked. that's it. that's the whole personality. slay πŸ’…


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me gatekeeping, go 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. ✨ (iconic behaviour, honestly)


🌈 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 🧚


and that's the page, bestie πŸŽ€ this was version 1.0.3 of shishi, section shishi_safe_to_file(3) β€” mwah, go write those SAFEs, but check your filenames first or you WILL lose data πŸ’€πŸ’–