|
|
Copies the source string (in RAM) to the given destination in EEPROM. Characters in strSrc are copied up to, and including, the terminating null character strSrc.
- Parameters:
-
| strSrc | Pointer to null terminated Source string contained in RAM. |
| strDst | Destination address (offset) in the EEPROM |
| len | The maximum string length that is allowed to be written (excluding NULL terminating char). If the source string is longer then this value, the destination will be truncated with a NULL! To disable length checking, set this value to 255. For example, if len = 8, then that string can have a maximum of 8 characters = 8 + NULL. The destination must always have len + 1 positions available! |
- Returns:
- Returns the number of bytes written, including the NULL terminated char. For example, if 9 is returned, then 8 characters + NULL terminating char were written.
|