Remove forgotten os_strncpy() implementations

This was replaced with os_strlcpy() long time ago.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-03-10 15:55:46 +02:00
parent ca9efe113c
commit cd6a5866eb
2 changed files with 0 additions and 22 deletions

View file

@ -430,22 +430,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n)
} }
char * os_strncpy(char *dest, const char *src, size_t n)
{
char *d = dest;
while (n--) {
*d = *src;
if (*src == '\0')
break;
d++;
src++;
}
return dest;
}
size_t os_strlcpy(char *dest, const char *src, size_t siz) size_t os_strlcpy(char *dest, const char *src, size_t siz)
{ {
const char *s = src; const char *s = src;

View file

@ -218,12 +218,6 @@ int os_strncmp(const char *s1, const char *s2, size_t n)
} }
char * os_strncpy(char *dest, const char *src, size_t n)
{
return dest;
}
size_t os_strlcpy(char *dest, const char *src, size_t size) size_t os_strlcpy(char *dest, const char *src, size_t size)
{ {
return 0; return 0;