X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrncpy.c;h=e89332cfadd633de3444dbb68e4867970bd08d4e;hb=c8f799d852e3698468a78954d82588e841cc0b70;hp=3784df4dcdf2c8fbc722adb5455230567bf21b12;hpb=96c55f60f49ceb842cf30e0018bb963ef9ed7d1c;p=pdclib.old diff --git a/functions/string/strncpy.c b/functions/string/strncpy.c index 3784df4..e89332c 100644 --- a/functions/string/strncpy.c +++ b/functions/string/strncpy.c @@ -1,9 +1,9 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ #include <__size_t.h> @@ -12,7 +12,7 @@ char * strncpy( char * restrict dest, const char * restrict src, size_t n ) char * tmp = dest; while ( ( n-- != 0 ) && ( ( *dest++ = *src++ ) != '\0' ) ) { - // EMPTY + /* EMPTY */ } while ( n-- != 0 ) {