|
-
December 20th, 2006, 04:06 PM
#1
memset question
just a quick lil question on memset()
if i do something like this
char buf[128];
memset(buf, 'A', sizeof(buf));
will this overwrite the terminating character \0? since im filling the whole buffer
with A or does memset automatically take into account the \0?
because i kno that \0, \r, and \n only take "1 slot" in the buffer
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|