What is memmove?

Answer Posted / rekha

"memmove" can safely handle the situation where the source
string overlaps the destination string

an example
ptr = memmove( s1, s2, N );

"memmove" copies exactly N characters from the string "s2"
into the area of memory pointed to by "s1". Unlike the
function "strncpy", "memmove" does not check for the
terminating '\0' of string "s2"; it simply copies N
characters. It does not put a terminating '\0' on the end of
string "s1".

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #include cctype?

577


why do some people write if(0 == x) instead of if(x == 0)?

653


Why isnt any of this standardized in c?

629


What is main () in c language?

590


Explain the use of keyword 'register' with respect to variables.

588






What are the back slash character constants or escape sequence charactersavailable in c?

680


What is c language used for?

553


What is #error and use of it?

677


Is there a way to switch on strings?

610


What is a buffer in c?

571


Explain what is a pragma?

589


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

761


Explain how are portions of a program disabled in demo versions?

649


What are identifiers c?

560


What is the use of printf() and scanf() functions?

628