merged trunk changes

This commit is contained in:
Markus Fröschle
2013-05-12 06:30:17 +00:00
parent 56b822fa5f
commit a95752d243
16 changed files with 800 additions and 60 deletions

View File

@@ -28,6 +28,13 @@ char *strcpy(char *dst, const char *src)
return ptr;
}
char *strncpy(char *dst, const char *src, int max)
{
char *ptr = dst;
while ((*dst++ = *src++) != '\0' && max-- >= 0);
return ptr;
}
int atoi(const char *c)
{
int value = 0;