CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Function to copy array data from one memory loc to another

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
balaji



Joined: 30 Mar 2010
Posts: 21

View user's profile Send private message Send e-mail

Function to copy array data from one memory loc to another
PostPosted: Wed Jun 14, 2017 5:09 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Jun 14, 2017 6:53 am     Reply with quote

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.....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group