2 * Copyright (c) 1995-2003, Index Data
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: ber_null.c,v 1.14 2003-03-11 11:03:31 adam Exp $
15 * BER-en/decoder for NULL type.
22 if (odr_putc(o, 0X00) < 0)
25 fprintf(stderr, "[NULL]\n");
31 odr_seterror(o, OPROTO, 39);
34 if (*(o->bp++) != 0X00)
36 odr_seterror(o, OPROTO, 12);
40 fprintf(stderr, "[NULL]\n");
43 case ODR_PRINT: return 1;
44 default: odr_seterror(o, OOTHER, 13); return 0;