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
What is #include cctype?
why do some people write if(0 == x) instead of if(x == 0)?
Why isnt any of this standardized in c?
What is main () in c language?
Explain the use of keyword 'register' with respect to variables.
What are the back slash character constants or escape sequence charactersavailable in c?
What is c language used for?
What is #error and use of it?
Is there a way to switch on strings?
What is a buffer in c?
Explain what is a pragma?
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
Explain how are portions of a program disabled in demo versions?
What are identifiers c?
What is the use of printf() and scanf() functions?