summaryrefslogtreecommitdiff
path: root/src/libstddjb/str_cpy.c
blob: 179688c9be70f291b2b18eef1968735a51cbf3cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ISC license. */

#include <skalibs/config.h>

#ifdef SKALIBS_FLAG_REPLACE_LIBC

#include <skalibs/bytestr.h>

unsigned int str_copy (char *s, char const *t)
{
  register unsigned int len = 0 ;
  while ((*s = *t)) (s++, t++, len++) ;
  return len ;
}

#endif