MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / strdup

Function strdup

tools/shell/linenoise.cpp:760–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758
759#ifdef __STRICT_ANSI__
760char* strdup(const char* s) {
761 size_t l = strlen(s) + 1;
762 char* p = malloc(l);
763
764 memcpy(p, s, l);
765 return p;
766}
767#endif /* __STRICT_ANSI__ */
768
769#endif

Callers 4

linenoiseHistoryAddFunction · 0.85
acceptSearchFunction · 0.85
linenoiseEditHistoryNextFunction · 0.85
linenoiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected