This shows you the differences between two versions of the page.
|
c:string.h:strncpy [2013/01/22 22:02] 127.0.0.1 external edit |
c:string.h:strncpy [2024/02/16 01:06] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== strncpy ====== | ||
| + | |||
| <code c> | <code c> | ||
| - | #include <string.h> | + | #include <string.h> |
| - | char *strncpy(char *str1, const char *str2, size_t n); | + | char *strncpy(char *str1, const char *str2, size_t n); |
| - | + | ||
| </code> | </code> | ||
| - | Copy a given Number of Chars into another string. | + | Copy a given Number of Chars into another string. |
| <code c> | <code c> | ||
| #include <stdio.h> /* including standard library */ | #include <stdio.h> /* including standard library */ | ||