summaryrefslogtreecommitdiff
path: root/huffman.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-13 22:07:24 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-13 22:07:24 +0000
commit8a9fd3f93bb3db2d969126913eedab023dba013f (patch)
tree5cd76353b5ec3e8be5c1062c0294e9b402a71487 /huffman.c
parent9631ec05f6ddc60b231e5fad280e5a5242c5bab3 (diff)
Remove AllocateMemory, FreeMemory, MoveMemory, ErrorExit, and ReportError functions
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@17 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'huffman.c')
-rw-r--r--huffman.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/huffman.c b/huffman.c
index 9d6aa7e..b16ceab 100644
--- a/huffman.c
+++ b/huffman.c
@@ -263,9 +263,7 @@ do {
*/
/* wordptr=wordcatarray[abs_randwc((long)WORDCATSIZE)];*/
wordptr=wordcatarray[abs_randwc((int32_t)WORDCATSIZE)];
-MoveMemory((void *)myword,
- (void *)wordptr,
- (unsigned long)strlen(wordptr)+1);
+memmove(myword, wordptr, strlen(wordptr) + 1);
/*
** Append a blank.
@@ -282,7 +280,7 @@ if((tomove+charssofar)>nchars)
/*
** Attach the word to the current line. Increment counter.
*/
-MoveMemory((void *)dt,(void *)myword,(unsigned long)tomove);
+memmove(dt, myword, tomove);
charssofar+=tomove;
dt+=tomove;