tweeked borland makefiles for case sensitive linking, changed memcpy to memmove in partial grep example

[SVN r9990]
This commit is contained in:
John Maddock
2001-04-28 10:12:52 +00:00
parent a719c77f63
commit 19dab6c60a
5 changed files with 12 additions and 10 deletions

View File

@ -36,7 +36,7 @@ void search(std::istream& is)
// and how much is left to fill:
unsigned size = next_pos - buf;
// copy forward whatever we have left:
memcpy(buf, next_pos, leftover);
memmove(buf, next_pos, leftover);
// fill the rest from the stream:
unsigned read = is.readsome(buf + leftover, size);
// check to see if we've run out of text:
@ -80,3 +80,4 @@ int main(int argc, char* argv[])
return 0;
}