|
|
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 p
Length: 903 (0x387)
Types: TextFile
Names: »profile.c«
└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
└─⟦this⟧ »./DVIware/laser-setters/quicspool/src/profile.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z«
└─⟦ca79c7339⟧
└─⟦this⟧ »DVIware/laser-setters/quicspool/src/profile.c«
#ifndef lint
static char *rcs = "$Header: profile.c,v 1.1 88/01/15 13:05:09 simpson Rel $";
#endif
/*
$Log: profile.c,v $
* Revision 1.1 88/01/15 13:05:09 simpson
* initial release
*
* Revision 0.1 87/12/11 18:31:15 simpson
* beta test
*
*/
/* Profile(3) related routines */
#include <stdio.h>
#include <local/profile.h>
/* Returns the value of a binding in the configuration stanza with the key
* equal to the formal parameter name. It returns NULL if unsuccessful.
*/
PROFILE_VALUE *getbindingvalue(key)
char *key;
{
FILE *config;
static PROFILE_STANZA *s;
PROFILE_BINDING *b;
if (!s)
if (config = fopen("configuration", "r")) {
if (!(s = profile_read_stanza(config))) {
(void)fclose(config);
return NULL;
}
(void)fclose(config);
} else
return NULL;
if (b = profile_has_binding(s, key))
return b->value;
return NULL;
}