* Re: Pointer alignment/unaligned data access problem with [g]dbm [SUMMARY]
@ 1993-07-11 19:43 Tom Snee
0 siblings, 0 replies; only message in thread
From: Tom Snee @ 1993-07-11 19:43 UTC (permalink / raw)
Many thanks to the people who responded to my posting: Ted Stockwell of
Aggregate Computing, Matt Day of Lachman Technology, Michael Corrigan of
UCSD, and Alan Rollow of DEC. The consensus seems to be that dbm and
gdbm do not properly align the data blocks that they return. The
easiest solution is to use memcpy() to copy the data returned by [g]dbm
into a structure, instead of casting the [g]dbm char * to structure *.
When I tried it, lint still warned of "possible pointer alignment
problem"s, but I did not get any runtime warnings. Thanks again.
Tom Snee
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-07-11 19:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-11 19:43 Pointer alignment/unaligned data access problem with [g]dbm [SUMMARY] Tom Snee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox