You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The strncpy(s1, s2, n) function shall copy not more than n bytes
(bytes that follow a NUL character are not copied) from the array
pointed to by s2 to the array pointed to by s1. Both strncpy and strlen
are usually optimized in libc implementation, and we should utilize
them when possible.
0 commit comments