Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * <<strncpy>>---counted copy string
21 * char *strncpy(char *<[dst]>, const char *<[src]>, size_t <[length]>);
24 * char *strncpy(<[dst]>, <[src]>, <[length]>)
28 * <<strncpy>> copies not more than <[length]> characters from the
29 * the string pointed to by <[src]> (including the terminating
30 * null character) to the array pointed to by <[dst]>. If the
31 * string pointed to by <[src]> is shorter than <[length]>
32 * characters, null characters are appended to the destination
33 * array until a total of <[length]> characters have been
35 * This function returns the initial value of <[dst]>.
37 * <<strncpy>> is ANSI C.
38 * <<strncpy>> requires no supporting OS subroutines.
50 Copy characters from one string to another.
51 Copies the first num characters of src to dest.
52 No null-character is implicitly appended to dest after copying process.
53 So dest may not be null-terminated if no null-caracters are copied from src.
54 If num is greater than the length of src, dest is padded with zeros until num.
55 @return dst is returned.
56 @param dst Destination string. Space allocated should be at least
58 @param src Null-terminated string.
59 @param n Number of characters to be copied.
61 EXPORT_C char *strncpy (char *dst, const char *src, size_t n)
73 if ((*dscan++ = *sscan++) == '\0')