cnesc

Convert Array to String Nesc


I want to convert an array of uint8_t to a uint32_t in NesC.

Does anyone know how I can do this?


Solution

  • The solution that i were found is the use of the function :

    void * memcpy ( void * destination, const void * source, size_t num );
    

    There is also the function :

    void * memset ( void * ptr, int value, size_t num );
    

    In my code i use memcpy and it works fine. Thanks to all people that answer my question