path:
root/
src/
model/
asn_print/
asn_print_personid.c (
plain)
blob: b4b0711ee960c3802c2c7b005ed536da7989a3d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include "asn_print_personid.h"
void
asn_print_personid (PersonIdPtr p)
{
switch (p->choice)
{
case 2 :
{
/*
* Name
*
* Code affected by GCC Bug 37231 since this block starts with
* a declaration.
* [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37231]
*/
NameStdPtr n = p->data;
if (n->names[0] != NULL)
printf (" LAST: %s\n", n->names[0]);
if (n->names[1] != NULL)
printf (" FIRST: %s\n", n->names[1]);
if (n->names[2] != NULL)
printf (" MIDDLE: %s\n", n->names[2]);
if (n->names[3] != NULL)
printf (" FULL: %s\n", n->names[3]);
if (n->names[4] != NULL)
printf (" INITIALS: %s\n", n->names[4]);
if (n->names[5] != NULL)
printf (" SUFFIX: %s\n", n->names[5]);
if (n->names[6] != NULL)
printf (" TITLE: %s\n", n->names[6]);
break;
}
default:
printf ("PERSONID-CHOICE UNHANDLED: %i\n", p->choice);
exit (-1);
break;
}
return;
}
|