#include "petscsys.h" PetscErrorCode PetscStrncpy(char s,const char t,size_t n)Not Collective
|t||- pointer to string|
|n||- the length to copy|
If the string that is being copied is of length n or larger then the entire string is not copied and the final location of s is set to NULL. This is different then the behavior of strncpy() which leaves s non-terminated if there is not room for the entire string.
Developers Note: Should this be PetscStrlcpy() to reflect its behavior which is like strlcpy() not strncpy()