Why are function parameters of type size_t?
Posted
by Grissiom
on Stack Overflow
See other posts from Stack Overflow
or by Grissiom
Published on 2010-04-08T13:01:19Z
Indexed on
2010/04/08
13:03 UTC
Read the original article
Hit count: 111
The prototype of memset is void *memset(void *s, int c, size_t n);
. So why the third parameter is of type size_t
? memset
is just an example, I want more general reasons. Thanks in advance.
© Stack Overflow or respective owner