MCPcopy Create free account
hub / github.com/beefytech/Beef / trimwhitespace

Function trimwhitespace

BeefFuzz/BeefFuzz.cpp:44–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void trimwhitespace(const uint8_t*& str, size_t& len)
45{
46 while (len > 0 && isspace(*str))
47 {
48 str++;
49 len--;
50 }
51
52 const uint8_t* end = str + len - 1;
53 while (len > 0 && isspace(*end))
54 {
55 end--;
56 len--;
57 }
58}
59
60static bool init = false;
61

Callers 1

LLVMFuzzerTestOneInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected