Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!otello!gear!cadlab!staff From: staff@cadlab.sublink.ORG (Alex Martelli) Newsgroups: comp.lang.c Subject: Re: Structure hopping Message-ID: <618@cadlab.sublink.ORG> Date: 4 Jan 91 11:43:41 GMT References: <949@tfsg.UUCP> Organization: CAD.LAB, Bologna, Italia Lines: 13 mark@tfsg.UUCP (Mark Crafts) writes: ... :Forgive my ignorance, but is there a quick 'n' simple way to say, :dump a structure to a file (or whatever) using pointers, if we :know that the structure only consists of, (for example) chars? fwrite((char*)pointer, sizeof(*pointer), 1, stdout), or similar, should do in many such cases ("holes" between members may be slight nuisances). -- Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 53, Bologna, Italia Email: (work:) staff@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).