asn1_number_of_elements(3)
β¨ NAME β¨
asn1_number_of_elements β bestie, it's an API function π (from libtasn1, the ASN.1 girlies' fave)
πΈ SYNOPSIS πΈ
#include <libtasn1.h>
int asn1_number_of_elements(asn1_node_const element, const char * name,
int * num);
π ARGUMENTS π
asn1_node_const elementβ okay so this is a pointer to the root of an ASN1 structure. like, the whole tree's main character πconst char * nameβ the name of a sub-structure of ROOT. yes, the arg is callednameand the docs keep yellingROOTin caps, we love the drama π«Άint * numβ a pointer to an integer, and that's where the result gets stored. she's the delivery address for the answer π¬
π DESCRIPTION π
Not me counting things β but actually yes, that's literally the job π
It counts the number of elements of a sub-structure called NAME, where the names are equal to "?1", "?2", ... etc. Lowkey iconic, highkey specific. Periodt. β¨
π¦ RETURNS π¦
ASN1_SUCCESSβ slay, it worked, no notes πASN1_ELEMENT_NOT_FOUNDβ ifnameis not known π that sub-structure said "who are you" and left the chatASN1_GENERIC_ERRORβ if the pointernumisNULL. like bestie you have to give her somewhere to put the answer π
π COPYRIGHT π
Copyright Β© 2006-2025 Free Software Foundation, Inc..
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. (translation: go off, just keep the receipts π)
π SEE ALSO π
The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your site, the command
info libtasn1
should give you access to the complete manual. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libtasn1/manual/
and that's the whole vibe check bestie β this page is from libtasn1 version 4.21.0 (the asn1_number_of_elements(3) era, the date slot stayed empty so we're not gonna make one up, we are not that kind of girl π
β¨π)
π¦ where this page comes from
- alpine 3.22: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- arch rolling: libtasn1 4.21.0-1 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND GFDL-1.3-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- ubuntu resolute: libtasn1-6-dev 4.21.0-2
- ubuntu stonking: libtasn1-6-dev 4.21.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms