Change bold code snippets to inline code blocks
This commit is contained in:
parent
f658bfbb40
commit
3c76d884ef
185 changed files with 1772 additions and 1772 deletions
8
05-01.md
8
05-01.md
|
|
@ -72,7 +72,7 @@ The application we're going to examine searches a file for a specified
|
|||
string. We'll develop a program that will search the file specified on
|
||||
the command line for a string (also specified on the comline), then
|
||||
report whether the string was found or not. (Because the searched-for
|
||||
string is obtained via **argv**, it can't contain any whitespace
|
||||
string is obtained via `argv`, it can't contain any whitespace
|
||||
characters.)
|
||||
|
||||
This is a *very* limited subset of what search utilities such as grep
|
||||
|
|
@ -115,9 +115,9 @@ access overhead).
|
|||
### Avoiding the String Trap {#Heading4}
|
||||
|
||||
The easiest approach would be to use a C/C++ library function. The
|
||||
closest match to what we need is **strstr()**, which searches one string
|
||||
for the first occurrence of a second string. However, while **strstr()**
|
||||
closest match to what we need is `strstr()`, which searches one string
|
||||
for the first occurrence of a second string. However, while `strstr()`
|
||||
would work, it isn't ideal for our purposes. The problem is this: Where
|
||||
we want to search a fixed-length buffer for the first occurrence of a
|
||||
string, **strstr()** searches a *string* for the first occurrence of
|
||||
string, `strstr()` searches a *string* for the first occurrence of
|
||||
another string.
|
||||
Loading…
Reference in a new issue