summary refs log tree commit diff
path: root/mach/mig_strncpy.c
blob: b0c001d7756f0a5df55983ac7cb4b2d16cf38331 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)