43b Subj : can vprintf work with a list of pointers to the data-to-be-displayed ? To : borland.public.cpp.borlandcpp From : R.Wieser Date : Sun Aug 28 2005 02:50 pm Hello all, I'm currently trying to create a generic (debugging) routine to display the contents of different records. The idea was to give the procedure (among others) a format-string, and an array of offsets within the to-be-read record to the different fields. After having read the record all (I thought) I needed to do was to create, using the record-address & filed-offsets a list with pointers into read record, and call vprintf with the format-string and the list. Alas, it turned out that vprint does not work that way .... My questions : 1) is there a way to let (v)printf accept (by way of formatting information ?) pointers instead of the direct values. If not, is there another way (apart from re-writing printf.c) or command. 2) How can I retrieve the offset of a record-field ("FieldOfset=&record_definition.field" generates an "unknown "record_definition" error). . 0