MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / Ltrim

Function Ltrim

hyperdbg/script-engine/code/script_include.c:22–32  ·  view source on GitHub ↗

* @brief Trims leading whitespace from a string in-place * * @param Str the string to left-trim * @return VOID */

Source from the content-addressed store, hash-verified

20 * @return VOID
21 */
22static VOID
23Ltrim(char * Str)
24{
25 char * P = Str;
26
27 while (*P && isspace((unsigned char)*P))
28 P++;
29
30 if (P != Str)
31 memmove(Str, P, strlen(P) + 1);
32}
33
34/**
35 * @brief Trims trailing whitespace from a string in-place

Callers 1

TrimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected