stachour@sctc.com (Paul Stachour) (10/11/90)
I am looking for source (perferably in C) [but would translate the algorithm from another language] that will allow me to do "named-io". This ability is known in PL/I as "data directed IO" and in FOTRAN as "namelist IO". ---- From the top-level viewpoint, one can read a stream with items like: QStr := "ABC"; XInt = 7; ZCmplx = (13.1, 17.2 ); and have each value assigned to the variable with the given name. ---- From a low-level viewpoint, given a stream and a set-of-tripples of the form [Variable-Name, Variable-Type, Variable-Address], one can 1) Match on the name to find the appropriate tripple. 2) Convert the value in the input-stream to the appropriate type. 3) Stote said value at the given address. ---- Any and all hints for location of said function appreciated. ...Paul -- Paul Stachour Secure Computing Technology Corp stachour@sctc.com 1210 W. County Rd E, Suite 100 Arden Hills, MN 55112 [1]-(612) 482-7467