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

Function pj_mkparam

ThirdParty/libproj/vtklibproj/src/param.cpp:38–50  ·  view source on GitHub ↗

create parameter list entry */

Source from the content-addressed store, hash-verified

36
37/* create parameter list entry */
38paralist *pj_mkparam(const char *str) {
39 paralist *newitem;
40
41 if((newitem = (paralist *)malloc(sizeof(paralist) + strlen(str))) != nullptr) {
42 newitem->used = 0;
43 newitem->next = nullptr;
44 if (*str == '+')
45 ++str;
46 (void)strcpy(newitem->param, str);
47 unquote_string(newitem->param);
48 }
49 return newitem;
50}
51
52
53/* As pj_mkparam, but payload ends at first whitespace, rather than at end of <str> */

Callers 6

ellps_ellpsFunction · 0.85
proj_init_infoFunction · 0.85
pj_datum_setFunction · 0.85
createFromPROJStringMethod · 0.85

Calls 1

unquote_stringFunction · 0.85

Tested by

no test coverage detected