What is memmove?



What is memmove?..

Answer / 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

More C Interview Questions

write a program to convert a expression in polish notation (postfix) to inline (normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix

0 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


Can i use Two or More Main Funtion in any C program.?

4 Answers  


what is the use of #pragma pack, wer it is used?

2 Answers   Wipro,


write a c program to store and print name,address,roll.no of a student using structures?

7 Answers  


What is the purpose of macro in C language?

1 Answers   Fidelity,


What functions are in conio h?

1 Answers  


What is the argument of a function in c?

1 Answers  


difference of two no's with out using - operator

7 Answers  


Why void is used in c?

1 Answers  


What is the right type to use for boolean values in c?

1 Answers  


What is the purpose of & in scanf?

1 Answers  


Categories