Reading a input stream assigning 1 thru 6 character to a str1 variable
using memmove function like this
buffer="abcdefgh";
memmove(str1,buffer,6);
somtimes what happens is i get str1 value more than 6
for example :-
According to this
memmove(str1,buffer,6);
I should get str1="abcdef" but in sometime i get str1=""abcdefgh"
Could you please help me out of this,
Thanks,
Khan