MCPcopy Create free account
hub / github.com/Kitware/VTK / pj_strdup

Function pj_strdup

ThirdParty/libproj/vtklibproj/src/malloc.cpp:63–71  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

61
62/**********************************************************************/
63char *pj_strdup(const char *str)
64/**********************************************************************/
65{
66 size_t len = strlen(str) + 1;
67 char *dup = static_cast<char*>(malloc(len));
68 if (dup)
69 memcpy(dup, str, len);
70 return dup;
71}
72
73
74/*****************************************************************************/

Callers 10

pj_make_argsFunction · 0.85
ellps_ellpsFunction · 0.85
ellps_sizeFunction · 0.85
ellps_shapeFunction · 0.85
ellps_spherificationFunction · 0.85
proj_suggests_code_forFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected