From 45eb4a409b978247c6ed414828e71faa9f4dfb6c Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Wed, 28 Jan 2015 13:00:28 -0800 Subject: [PATCH] memset() now matches C library --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c22c67d..c136819 100644 --- a/README.md +++ b/README.md @@ -379,11 +379,11 @@ putc(char), puts(string), home, gotoxy(x,y), getc() and gets() are other handy u puts(@okstr) ``` -memset(addr, len, val) will fill memory with a 16 bit value. memcpy(dstaddr, srcaddr, len) will copy memory from one address to another, taking care to copy in the proper direction. +memset(addr, val, len) will fill memory with a 16 bit value. memcpy(dstaddr, srcaddr, len) will copy memory from one address to another, taking care to copy in the proper direction. ``` byte nullstr[] = "" - memset(strlinbuf, maxfill * 2, @nullstr) // fill line buff with pointer to null string + memset(strlinbuf, @nullstr, maxfill * 2) // fill line buff with pointer to null string memcpy(scrnptr, strptr + ofst + 1, numchars) ```