delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/07/16:31:13

Xref: news2.mv.net comp.os.msdos.djgpp:5714
From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [_dos_]find{first|next} problem!
Date: Sun, 07 Jul 1996 19:27:32 GMT
Lines: 21
Message-ID: <836767569.26385.0@abwillms.demon.co.uk>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

It seems to be a structure packing problem... the ff.c in djtst claims
that the offset of ff_name is 30; but the SAME test in my code returns
32. Why is the packing changing? I compile both sources with the same
command line!

Further examination shows that the fact that my file is a .cc and the
ff.c file is a .c matters. Why does the packing change????? they both
use the same include file dir.h, which lists the struct as being fully
packed!

Regards,


ABW				
--
I have become... Comfortably numb...

Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.hardcafe.co.uk/Alaric/">http://www.hardcafe.co.uk/Alaric/</A>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019