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

Function Rtrim

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

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

Source from the content-addressed store, hash-verified

38 * @return VOID
39 */
40static VOID
41Rtrim(char * Str)
42{
43 char * End = Str + strlen(Str);
44
45 while (End > Str && isspace((unsigned char)End[-1]))
46 End--;
47
48 *End = '\0';
49}
50
51/**
52 * @brief Trims leading and trailing whitespace from a string in-place

Callers 1

TrimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected