shishi_aprep_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_aprep_to_file ✨ β€” the girlies' guide to section 3 of the shishi manual πŸ’–

okay bestie, so this one is a section 3 library call, shishi_aprep_to_file(3), and it's literally just "save the AP-REP to a file, bestie" energy. no cap. let's go πŸ¦‹


🌸 NAME 🌸

shishi_aprep_to_file β€” it's an API function, and it's giving "write the thing to disk" ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <shishi.h>

int shishi_aprep_to_file(Shishi * handle, Shishi_asn1 aprep, int
filetype, const char * filename);

like, that's the whole shape of it. four little cuties going in, one int coming out πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). it's the main character of the whole library fr fr πŸ‘‘
  • Shishi_asn1 aprep β€” the AP-REP you wanna save. that's the vibe we're preserving. 🫢
  • int filetype β€” an input variable that says what type of file gets written. check out Shishi_filetype for the actual options, iykyk. 🌈
  • const char * filename β€” an input variable holding the filename you're writing to. literally just the name of the file. simple as. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

Write AP-REP to file in specified TYPE. The file will be truncated if it exists.

⚠️ not me warning you: truncated means if that file already exists, its old contents are GONE. absolutely obliterated. so double-check your filename before you call this, bestie πŸ˜­πŸ’€

⭐ RETURN VALUE ⭐

Returns SHISHI_OK iff successful. that's the slay outcome, the one you want. anything else? not the vibe. πŸ’…


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? spill it to <bug-shishi@gnu.org>. they wanna hear it, fr fr.


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.

(so like, go off, share it, remix it β€” just keep the receipts, periodt ✨)


🌈 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. that's the whole lore, go read it 🧚


and that's the page, babe β€” from the shishi package, version 1.0.3, page shishi_aprep_to_file(3). mwah, go write some AP-REPs πŸ’–βœ¨