Change HTML4 entities to HTML5
< to < > to > & to &
This commit is contained in:
parent
56a4baa60e
commit
b8e7ce7165
105 changed files with 1117 additions and 1117 deletions
28
16-01.html
28
16-01.html
|
|
@ -67,10 +67,10 @@
|
|||
<TD ALIGN="LEFT" VALIGN="TOP">16.1 (C)
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">4.6 seconds
|
||||
<TR>
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">16.2 & 16.3 (C+ASM)
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">16.2 & 16.3 (C+ASM)
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">2.4 seconds
|
||||
<TR>
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">16.2 & 16.4 (C+ASM w/lookup)
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">16.2 & 16.4 (C+ASM w/lookup)
|
||||
<TD ALIGN="LEFT" VALIGN="TOP">1.6 seconds
|
||||
<TR>
|
||||
<TD ALIGN="LEFT" VALIGN="TOP" COLSPAN="2"><SMALL>These are the times taken to search a file containing 104,448 words, timed from a RAM disk on a 20 MHz 386.</SMALL>
|
||||
|
|
@ -85,11 +85,11 @@
|
|||
/* Word-counting program. Tested with Borland C++ in C
|
||||
compilation mode and the small model. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys\stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <io.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys\stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <io.h>
|
||||
|
||||
#define <I>B</I> UFFER_SIZE 0x8000 /* largest chunk of file worked
|
||||
with at any one time */
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
char *Buffer, CharFlag = 0, PredCharFlag, *BufferPtr, Ch;
|
||||
|
||||
if (argc != 2) {
|
||||
printf(“usage: wc <filename>\n”);
|
||||
printf(“usage: wc <filename>\n”);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
}
|
||||
|
||||
/* Process the file in chunks */
|
||||
while (FileSize > 0) {
|
||||
while (FileSize > 0) {
|
||||
/* Get the next chunk */
|
||||
FileSize -= (BlockSize = min(FileSize, BUFFER_SIZE));
|
||||
if (read(Handle, Buffer, BlockSize) == -1) {
|
||||
|
|
@ -134,14 +134,14 @@
|
|||
BufferPtr = Buffer;
|
||||
do {
|
||||
PredCharFlag = CharFlag;
|
||||
Ch = *BufferPtr++ & 0x7F; /* strip high bit, which some
|
||||
Ch = *BufferPtr++ & 0x7F; /* strip high bit, which some
|
||||
word processors set as an
|
||||
internal flag */
|
||||
CharFlag = ((Ch >= ‘a’) && (Ch <= ‘z’)) ||
|
||||
((Ch >= ‘A’) && (Ch <= ‘Z’)) ||
|
||||
((Ch >= ‘0’) && (Ch <= ‘9’)) ||
|
||||
CharFlag = ((Ch >= ‘a’) && (Ch <= ‘z’)) ||
|
||||
((Ch >= ‘A’) && (Ch <= ‘Z’)) ||
|
||||
((Ch >= ‘0’) && (Ch <= ‘9’)) ||
|
||||
(Ch == ‘\’’);
|
||||
if ((!CharFlag) && PredCharFlag) {
|
||||
if ((!CharFlag) && PredCharFlag) {
|
||||
WordCo <I>u</I> nt++;
|
||||
}
|
||||
} while (—BlockSize);
|
||||
|
|
|
|||
Loading…
Reference in a new issue