mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
initial import
This commit is contained in:
11
mach/mig_strncpy.c
Normal file
11
mach/mig_strncpy.c
Normal file
@ -0,0 +1,11 @@
|
||||
/* Silly pointless function MiG needs. */
|
||||
|
||||
#include <mach.h>
|
||||
#include <string.h>
|
||||
|
||||
vm_size_t
|
||||
__mig_strncpy (char *dst, const char *src, vm_size_t len)
|
||||
{
|
||||
return __stpncpy (dst, src, len) - dst;
|
||||
}
|
||||
weak_alias (__mig_strncpy, mig_strncpy)
|
Reference in New Issue
Block a user