0

I'm looking at MS DOS Headers with C. I am trying to find the end of the header, and in the documentation there is this:

 WORD   e_cparhdr;                   // Size of header in paragraphs

I am unfamiliar with what a paragraph is exactly. Is it a defined set of words? and does that definition change on different systems i.e. 32-64 bit.

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
sinavix742
  • 90
  • 6
  • 3
    Can you provide more context? – Daniel A. White Feb 25 '22 at 00:16
  • 1
    I wonder if I this doc means pages as in memory – Daniel A. White Feb 25 '22 at 00:16
  • 1
    What are "MS DOS Headers"? Are you talking about the header of an MS-DOS `.exe` file? If you are, then you may want to specify this clearly in the question (even if it is apparent from the link that you posted). – Andreas Wenzel Feb 25 '22 at 00:17
  • @AndreasWenzel Yes, it is for an .exe file, so a PE header with the magic number MZ. – sinavix742 Feb 25 '22 at 00:20
  • @RaymondChen Yes, I believe that is the answer. I also had the same issue as that poster, you type in paragraph and all you get is programs on how to analyse paragraphs. – sinavix742 Feb 25 '22 at 00:22
  • 1
    Notes on the format of DOS .EXE files http://www.tavi.co.uk/phobos/exeformat.html > The term paragraph refers to a size of 16 bytes (this is derived from the way that memory segmentation is implemented). PS. This was meant to be an answer, alas after closing the question answering became impossible. – CiaPan Feb 25 '22 at 00:23

0 Answers0