|
XINU
|
文字列s1に文字列s2をN文字(Byte)分コピーする。 More...
Go to the source code of this file.
Functions | |
| char * | strncpy (char *s1, const char *s2, int n) |
| 文字列s1に文字列s2をN文字(Byte)分コピーする。 More... | |
文字列s1に文字列s2をN文字(Byte)分コピーする。
Definition in file strncpy.c.
| char* strncpy | ( | char * | s1, |
| const char * | s2, | ||
| int | n | ||
| ) |
文字列s1に文字列s2をN文字(Byte)分コピーする。
自動でNULL終端('\0')は付与しない。
また、N Byteコピーする前にNULL終端に達した場合、残りのByte数分をNULL終端で埋める。
| [in,out] | s1 | コピー先の文字列 |
| [in] | s2 | コピー元の文字列 |
| [in] | n | コピーする文字数(Byte) |
Definition at line 15 of file strncpy.c.
Referenced by newtype(), sysinit(), and tftpget_mb().

1.8.13