Go to the first, previous, next, last section, table of contents.


strncpy

Syntax

#include <string.h>

char *strncpy(char *s1, const char *s2, size_t max);

Description

This function copies up to max characters of s2 into s1.

Return Value

s1

Portability

ANSI, POSIX

Example

char buf[100];
strncpy(buf, arg, 99);


Go to the first, previous, next, last section, table of contents.