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
Explain how can I make sure that my program is the only one accessing a file?
What is a lvalue
Explain what are global variables and explain how do you declare them?
Can you please compare array with pointer?
What is auto keyword in c?
What are the advantages of using new operator as compared to the function malloc ()?
Explain the meaning of keyword 'extern' in a function declaration.
What is wild pointer in c with example?
What are the advantages of c language?
Differentiate abs() function from fabs() function.
What is sizeof array in c?
int far *near * p; means
Are the variables argc and argv are local to main?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
What the advantages of using Unions?