MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / yaml_strdup

Function yaml_strdup

xs/tools/yaml/api.c:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 */
81
82YAML_DECLARE(yaml_char_t *)
83yaml_strdup(const yaml_char_t *str)
84{
85 if (!str)
86 return NULL;
87
88#ifdef WIN32
89 return (yaml_char_t *)_strdup((char *)str);
90#else
91 return (yaml_char_t *)strdup((char *)str);
92#endif
93}
94
95/*
96 * Extend a string.

Calls

no outgoing calls

Tested by

no test coverage detected