mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge pull request #549 from DrDoof/fix/strcpy-definition
Bring back the definition of strcpy
This commit is contained in:
1 file changed
+10
@@ -410,6 +410,16 @@ uint16_t strlen_x(__xdata const char *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uint16_t strcpy(__xdata uint8_t *dst, const char *s)
|
||||||
|
{
|
||||||
|
__xdata uint8_t *b = dst;
|
||||||
|
while (*s)
|
||||||
|
*dst++ = *s++;
|
||||||
|
*dst = 0;
|
||||||
|
return dst - b;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
char strcmp(__xdata const uint8_t *a, __code const uint8_t *b)
|
char strcmp(__xdata const uint8_t *a, __code const uint8_t *b)
|
||||||
{
|
{
|
||||||
uint8_t i = 0;
|
uint8_t i = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user