??? 09/28/04 11:22 Read: times |
#78252 - RE: Keil strncpy function doubt????? Responding to: ???'s previous message |
Sachin,
As your array size is so small, the direct method will be both quick and compact. memcpy() and all related functions take generic pointers as parameters because you could be copying from, say, code memory to xdata. As a consequence, all these library functions have a significant overhead for loading the parameters in your application and sorting out exactly which memory types to copy between. Also, the different permutations of memory types require quite a lot of code space; memcpy() is of the order of 1k bytes of code! |