|
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 g
Length: 1367 (0x557) Types: TextFile Names: »get_ava.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/quipu/dish/get_ava.c«
/* get_ava.c - */ #ifndef lint static char *rcsid = "$Header: /f/osi/quipu/dish/RCS/get_ava.c,v 6.0 89/03/18 23:40:46 mrose Rel $"; #endif /* * $Header: /f/osi/quipu/dish/RCS/get_ava.c,v 6.0 89/03/18 23:40:46 mrose Rel $ * * * $Log: get_ava.c,v $ * Revision 6.0 89/03/18 23:40:46 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. * */ #include "quipu/util.h" #include "quipu/commonarg.h" extern PS opt; extern LLog *log_dua; get_ava (avasert, type, value) AVA *avasert; char *type; char *value; { char *TidyString (); if (type == NULLCP || *type == 0) return (NOTOK); avasert->ava_type = AttrT_new (TidyString (type)); if (avasert->ava_type == NULLAttrT) { ps_printf (opt, "Invalid at %s\n", type); return (NOTOK); } if ((avasert->ava_type->at_table->oa_syntax != AV_CASEEXACTSTRING) && (avasert->ava_type->at_table->oa_syntax != AV_CASEIGNORESTRING)) { ps_print (opt, "Can only compare string types\n"); AttrT_free (avasert->ava_type); return (NOTOK); } avasert->ava_value = str2AttrV (TidyString (value), AV_CASEIGNORESTRING); return (OK); }