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

When should you not use a type cast?

665


List the different types of c tokens?

631


Explain how do you sort filenames in a directory?

616


Can you write the algorithm for Queue?

1558


Why is not a pointer null after calling free?

600






Why can’t constant values be used to define an array’s initial size?

842


Ow can I insert or delete a line (or record) in the middle of a file?

579


What is difference between structure and union in c?

554


What is the best organizational structure?

646


What is difference between function overloading and operator overloading?

664


Explain which function in c can be used to append a string to another string?

596


Differentiate between new and malloc(), delete and free() ?

681


Why do some versions of toupper act strangely if given an upper-case letter?

638


Are local variables initialized to zero by default in c?

557


Can we access array using pointer in c language?

650