home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
sep91.zip
/
9N09062A
< prev
next >
Wrap
Text File
|
1991-06-07
|
481b
|
28 lines
/*
* ts2vn.c -- Convert from Transfer Syntax
* to Value Notation.
*/
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "asn1.h"
#define BUFFER_SIZE 32768
char buffer[BUFFER_SIZE];
int
main(int argc, char *argv[])
{
char *p = buffer;
int c;
for (p = buffer; (c = fgetc(stdin)) != EOF; *p++)
*p = (char) c;
show_value_notation(buffer, p - buffer, 0);
return 0;
}