* Europagate, 1994-1995.
*
* $Log: iso2709.c,v $
- * Revision 1.12 1995/03/29 16:08:56 adam
+ * Revision 1.13 1995/03/30 07:33:32 adam
+ * New 2709 function: iso2709_mk.
+ * First implementation of iso2709_a_insert.
+ *
+ * Revision 1.12 1995/03/29 16:08:56 adam
* Better error recovery when using bad records.
*
* Revision 1.11 1995/03/28 16:07:07 adam
return buf;
}
+Iso2709Rec iso2709_mk (void)
+{
+ Iso2709Rec p;
+
+ if (!(p = malloc (sizeof(*p))))
+ return NULL;
+
+ p->record_length = 0;
+ strncpyx (p->record_status, " ", 1);
+ strncpyx (p->implementation_codes, " ", 4);
+ p->indicator_length = 2;
+ p->identifier_length = 2;
+ p->base_address = 0;
+ strncpyx (p->user_systems, " ", 3);
+ p->length_data_entry = 4;
+ p->length_starting = 5;
+ p->length_implementation = 0;
+ strncpyx (p->future_use, " ", 1);
+
+ p->directory = NULL;
+ return p;
+}
Iso2709Rec iso2709_cvt (const char *buf)
{