NAME
asn1_long_in
asn1_long_out
asn1_long_olen
SYNOPSIS
#include "asn1.h"
char *asn1_long_in(str, pos, li)
char *str, *pos;
asn1_long *li;
char *asn1_long_out(str, li)
char *str;
asn1_long *li;
int asn1_long_olen(li)
asn1_long *li;
DESCRIPTION
The ASN.1 library routines allow C programmers to describe arbitrary
data structures in a machine-independent fashion.
All ASN.1 routines require the header
"asn1.h"
to be include.
These routines convert string of decimal digits into integers of
arbitrary length. The integers are stored using the defined type
asn1_long
(see asn1_long(9x)) :
-
asn1_long_in()
converts as an
asn1_long
the value represented by the string of decimal
digits pointed to by
str.
The string is scanned up to the last character pointed to by
pos,
or up to this first non numeric character.
-
asn1_long_out()
provides the inverse of
asn1_long_in().
It returns as a string of decimal digits the long integer pointed to by
li.
-
asn_long_olen()
returns the number of characters required to convert as a string
of decimal digits the long integer pointed to by
li.
Including the null terminating character.
"SEE ALSO"
mavcod (9x),
mavros (9x),
mavros-output (9x),
asn1_time (9x),
asn1_malloc (9x),
asn1_long (9x),
asn1_longmath (9x),
asn1_longrand (9x),
asn1_longprime (9x)
C. Huitema,
"General Presentation of the MAVROS Compiler",INRIA, 1990