MCPcopy Index your code
hub / github.com/assaultcube/AC / loopi

Function loopi

source/src/command.cpp:442–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440 if(len > CSLIMIT_STRINGLEN) { cslimiterr("string length"); return newstring(""); }
441 char *r = newstring("", len), *res = r;
442 loopi(n)
443 {
444 strncpy(r, w[i], wlen[i]); // make string-list out of all arguments
445 r += wlen[i];
446 if(space) *r++ = ' ';
447 }
448 if(space && n) --r;
449 *r = '\0';
450 return res;

Callers 8

command.cppFile · 0.70
loopaFunction · 0.70
add_Function · 0.70
mul_Function · 0.70
addf_Function · 0.70
mulf_Function · 0.70
writecfgFunction · 0.70
deletecfgFunction · 0.70

Calls 2

parsewordFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected