Subversion Repositories HelenOS-historic

Rev

Rev 1702 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 1708
Line 133... Line 133...
133
 * Copy at most 'len' characters from string 'src' to 'dest'.
133
 * Copy at most 'len' characters from string 'src' to 'dest'.
134
 * If 'src' is shorter than 'len', '\0' is inserted behind the
134
 * If 'src' is shorter than 'len', '\0' is inserted behind the
135
 * last copied character.
135
 * last copied character.
136
 *
136
 *
137
 * @param src Source string.
137
 * @param src Source string.
138
 * @param dst Destination buffer.
138
 * @param dest Destination buffer.
139
 * @param len Size of destination buffer.
139
 * @param len Size of destination buffer.
140
 */
140
 */
141
void strncpy(char *dest, const char *src, size_t len)
141
void strncpy(char *dest, const char *src, size_t len)
142
{
142
{
143
    int i;
143
    int i;