在K&R的《c程序设计语言》关于memset(s,c,n)函数是这样描述的:
place charater c into first n characters of s,retur s.
这句话怎么理解呢?能给我个简单的例子吗?其中:s is of type void *;n is of
type size_t;and c is an int converted to an unsigned char.
...全文
408打赏收藏
memset()做何用?
在K&R的《c程序设计语言》关于memset(s,c,n)函数是这样描述的: place charater c into first n characters of s,retur s. 这句话怎么理解呢?能给我个简单的例子吗?其中:s is of type void *;n is of type size_t;and c is an int converted to an unsigned char.