MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / strip

Function strip

yolo_detector/darknet_opt/src/utils.c:299–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void strip(char *s)
300{
301 size_t i;
302 size_t len = strlen(s);
303 size_t offset = 0;
304 for(i = 0; i < len; ++i){
305 char c = s[i];
306 if(c==' '||c=='\t'||c=='\n') ++offset;
307 else s[i-offset] = c;
308 }
309 s[len-offset] = '\0';
310}
311
312void strip_char(char *s, char bad)
313{

Callers 3

read_cfgFunction · 0.85
read_data_cfgFunction · 0.85
vec_char_rnnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected