⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strtab.html

📁 我在网上下的
💻 HTML
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
   <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win95; I) [Netscape]">
   <title>COFF: String Table</title>
</head>
<body>

<center><table BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH="100%" >
<tr>
<td ALIGN=LEFT VALIGN=TOP BGCOLOR="#FFCC99"><b><font face="itc avant garde gothic,helvetica,arial">&nbsp;
<a href="/" target="_top">www.delorie.com</a>/<a href="/djgpp/" target="_top">djgpp</a>/<a href="/djgpp/doc/" target="_top">doc</a>/<a href="/djgpp/doc/coff/" target="_top">coff</a>/strtab.html</font></b></td>

<td ALIGN=RIGHT VALIGN=TOP BGCOLOR="#FFCC99"><b><font face="itc avant garde gothic,helvetica,arial">&nbsp;
<a href="/search/">search</a></font></b></td>
</tr>
</table></center>

<center><b><font size=-1>COFF: String Table</font></b></center>

<p>The string table contains the names of symbols that are too long to
inline in <a href="symtab.html">the symbol table</a>. To read the string
table, position the file pointer just after the symbol table (usually,
you read the strings right after you read the symbols anyway), and read
four bytes as one 32-bit little endian integer. Allocate this much memory.
Set the first four bytes of the memory to zero, and read the remainder
of the string table (length-4) into the remainder of the memory (ptr+4).
A code sample would look like this:
<ul>
<pre>int i;
char *s;
read(fd, &amp;i, 4);
s = (char *)malloc(i-4);
memset(s, 0, 4);
read(fd, s+4, i-4);</pre>
</ul>
All references to strings in this table are offsets from the beginning
of this memory block. Note that offsets of zero are legal and will result
in a zero-length string because of those four zeros you put at the beginning
(where the length used to be).
<table BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH="100%" >
<tr>
<td ALIGN=LEFT VALIGN=TOP BGCOLOR="#FFCC99"><b><font face="itc avant garde gothic,helvetica,arial">&nbsp;
<a href="/users/dj/" target="_top">webmaster</a>&nbsp;

<a href="/donations.html" target="_top">donations</a>&nbsp; 
<a href="/store/books/" target="_top">bookstore</a></font></b></td>

<td ALIGN=RIGHT VALIGN=TOP BGCOLOR="#FFCC99"><b><font face="itc avant garde gothic,helvetica,arial">&nbsp;
<a href="/" target="_top">delorie
software</a>&nbsp; 
<a href="/privacy.html" target="_top">privacy</a></font></b></td>
</tr>

<tr>
<td ALIGN=LEFT VALIGN=TOP BGCOLOR="#FFCC99"><b><font face="itc avant garde gothic,helvetica,arial">&nbsp;
<a href="/copyright.html" target="_top">Copyright

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -