|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 1376 (0x560) Types: TextFile Names: »dq2dn.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/dsap/common/dq2dn.c«
/* dq2dn.c - designator qualifier pair to directory name */ #ifndef lint static char *rcsid = "$Header: /f/osi/dsap/common/RCS/dq2dn.c,v 6.0 89/03/18 23:27:31 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/common/RCS/dq2dn.c,v 6.0 89/03/18 23:27:31 mrose Rel $ * * * $Log: dq2dn.c,v $ * Revision 6.0 89/03/18 23:27:31 mrose * Release 5.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ /* LINTLIBRARY */ #include <stdio.h> #include "general.h" #include "manifest.h" #include "psap2.h" #include "isoaddrs.h" #include "tailor.h" #include "quipu/name.h" DN str2dn (); void advise (); /* \f */ DN dq2dn (designator, qualifier) char *designator, *qualifier; { static char *cnp = "cn="; char xx[BUFSIZ]; char *q2 = xx, *alias; DN dn, qdn; if ((alias = alias2name (designator)) == NULL) alias = designator; if ((dn = str2dn (alias)) != NULLDN) { (void) sprintf (q2, "%s%s", cnp, qualifier); if ((qdn = str2dn (q2)) != NULLDN) { dn_append (dn, qdn); return dn; } else { dn_free (dn); return NULLDN; } } else return NULLDN; }