|
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: 1374 (0x55e) Types: TextFile Names: »dq2dn.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.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 7.0 89/11/23 21:42:08 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/common/RCS/dq2dn.c,v 7.0 89/11/23 21:42:08 mrose Rel $ * * * $Log: dq2dn.c,v $ * Revision 7.0 89/11/23 21:42:08 mrose * Release 6.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; }