wcsncpy(3) Library Functions Manual wcsncpy(3) NOME wcsncpy - copia uma string de caracteres largos de tamanho fixo BIBLIOTECA Biblioteca C Padrao (libc, -lc) SINOPSE #include wchar_t *wcsncpy(wchar_t dest[restrict .n], const wchar_t src[restrict .n], size_t n); DESCRICAO The wcsncpy() function is the wide-character equivalent of the strncpy(3) function. It copies at most n wide characters from the wide-character string pointed to by src, including the terminating null wide character (L'\0'), to the array pointed to by dest. Exactly n wide characters are written at dest. If the length wcslen(src) is smaller than n, the remaining wide characters in the array pointed to by dest are filled with null wide characters. If the length wcslen(src) is greater than or equal to n, the string pointed to by dest will not be terminated by a null wide character. As strings nao podem se sobrepor. O programador deve assegurar que ha espaco para pelo menos n caracteres largos em dest. VALOR DE RETORNO wcsncpy() retorna dest. ATRIBUTOS Para uma explicacao dos termos usados nesta secao, consulte attributes(7). +--------------------------------------------+---------------+---------+ |Interface | Atributo | Valor | +--------------------------------------------+---------------+---------+ |wcsncpy() | Thread safety | MT-Safe | +--------------------------------------------+---------------+---------+ PADROES C11, POSIX.1-2008. HISTORICO POSIX.1-2001, C99. VEJA TAMBEM strncpy(3) TRADUCAO A traducao para portugues brasileiro desta pagina man foi criada por Marcelo D. Beckmann , Andre Luiz Fassone e Rafael Fontenelle . Esta traducao e uma documentacao livre; leia a Licenca Publica Geral GNU Versao 3 ou posterior para as condicoes de direitos autorais. Nenhuma responsabilidade e aceita. Se voce encontrar algum erro na traducao desta pagina de manual, envie um e-mail para a lista de discussao de tradutores . Linux man-pages 6.06 31 outubro 2023 wcsncpy(3)