Movatterモバイル変換


[0]ホーム

URL:


strncpy
Prev String Manipulation Next

Name

strncpy — Copy a length-limited, C-string

Synopsis

char *strncpy(char *dest,
 const char *src,
 size_tcount);
 

Arguments

char * dest

Where to copy the string to

const char * src

Where to copy the string from

size_t count

The maximum number of bytes to copy

Description

The result is notNUL-terminated if the source exceedscount bytes.

In the case where the length ofsrc is less than that of count, the remainder ofdest will be padded withNUL.


Prev Up Next
strcpy Home strlcpy

[8]ページ先頭

©2009-2025 Movatter.jp