#include "petscsys.h" PetscErrorCode PetscStrncpy(char s[],const char t[],size_t n)Not Collective Many br
t | - pointer to string Many br | |
n | - the length to copy Many br |
Many br
If the string that is being copied is of length n or larger then the entire string is not Many brcopied and the file location of s is set to NULL. This is different then the behavior of Many brstrncpy() which leaves s non-terminated. Many br
Level:intermediate
Location:src/sys/utils/str.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages