MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / strncpy_

Function strncpy_

jni/stasm/misc.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33// Like strncpy but always zero terminate, issue error if can't.
34
35void strncpy_(
36 char* dest, // out
37 const char* src, // in
38 int n) // in: sizeof(dest)
39{
40 const char* const start = src; // used only for possible error message
41 while ((*dest++ = *src++)) // assignment is intentional
42 if (--n <= 0)
43 Err("Error in strncpy_ %-80s", start);
44}
45
46void ToLowerCase(
47 char* s) // io: convert to lower case

Callers 1

makepathFunction · 0.85

Calls 1

ErrFunction · 0.85

Tested by

no test coverage detected