MCPcopy Create free account
hub / github.com/ddnet/ddnet / StrCopyUntilSpace

Function StrCopyUntilSpace

src/game/client/components/console.cpp:489–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static void StrCopyUntilSpace(char *pDest, size_t DestSize, const char *pSrc)
490{
491 const char *pSpace = str_find(pSrc, " ");
492 str_copy(pDest, pSrc, minimum<size_t>(pSpace ? pSpace - pSrc + 1 : 1, DestSize));
493}
494
495void CGameConsole::CInstance::PossibleArgumentsCompleteCallback(int Index, const char *pStr, void *pUser)
496{

Callers 1

OnInputMethod · 0.85

Calls 2

str_findFunction · 0.85
str_copyFunction · 0.50

Tested by

no test coverage detected