Function to copy array data from one memory loc to another
Posted: Wed Jun 14, 2017 5:09 am
hai there,
I am using PIC 18f252 for my proj. I am using memory copy function to swap data between two locations and hit with error.
My function is:
Code:
memmove(&uid[uid_index], &uid[uid_index + 1], 3);
error: undefined identifier: memmove
help!!
Ttelmah
Joined: 11 Mar 2010 Posts: 19544
Posted: Wed Jun 14, 2017 6:53 am
you need to include string.h
You will find that memmove is listed under the string functions, which have the comment that you need to include this, but if you go directly to the 'memmove' manual entry, it forgets to tell you this.....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum