NAME
memcpy - copy bytes in memory
SYNOPSIS
#include <string.h>
void *memcpy(void *s1, const void *s2, size_t n);
DESCRIPTION
The memcpy() function copies n bytes from the object pointed to by s2
into the object pointed to by s1. If copying takes place between objects
that overlap, the behaviour is undefined.
RETURN VALUE
The memcpy() function returns s1; no return value is reserved to
indicate an error.
Or you can probably use structure assignment
newstruct = (newstruct)oldstruct;
MS
marion arnaud wrote:
> Hi all!
>
> I want to copy the contents of a message RssiMsg in another message
> TransMsg.
> somebody knows how to do it using memcpy or something else?
> Any ideas or advices will be appreciated!!
>
> thanks for your help,
>
> Marion
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help