]> pd.if.org Git - pdclib/blobdiff - functions/string/strncpy.c
Removed old files.
[pdclib] / functions / string / strncpy.c
diff --git a/functions/string/strncpy.c b/functions/string/strncpy.c
deleted file mode 100644 (file)
index e89332c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * --------------------------------------------------------------------------*/
-
-#include <__size_t.h>
-
-char * strncpy( char * restrict dest, const char * restrict src, size_t n )
-{
-    char * tmp = dest;
-    while ( ( n-- != 0 ) && ( ( *dest++ = *src++ ) != '\0' ) )
-    {
-        /* EMPTY */
-    }
-    while ( n-- != 0 )
-    {
-        *dest++ = '\0';
-    }
-    return tmp;
-}