MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Pad

Function Pad

Source/Utility/Profiler.cpp:177–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177static void Pad( char * str, u32 length )
178{
179 u32 actLen = strlen( str );
180
181 if (actLen > length)
182 {
183 str[length] = '\0';
184 str[length - 1 ] = '.';
185 str[length - 2 ] = '.';
186 str[length - 3 ] = '.';
187 }
188 else
189 {
190 char * end( str + actLen);
191
192 while( u32(end - str) < length )
193 {
194 *end++ = ' ';
195 }
196 *end = '\0';
197 }
198}
199
200struct SortByCallstack
201{

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected