function to copy data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spb14
    New Member
    • Jun 2010
    • 4

    #1

    function to copy data

    i have a callback function which has the parameter const unsigned char *pData.everytim e i hit the callback function i need to store the pData value into my local unsigned char* variable.is there any function to copy the data???
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    C or C++?

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      How many char's in the data to be copied?

      Comment

      • spb14
        New Member
        • Jun 2010
        • 4

        #4
        i got the soln thanks.....used memcpy()

        Comment

        Working...