MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / ksprintf

Function ksprintf

src/library/common/kgen_basic.c:394–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void
395ksprintf(Kstring *kstr, const char *fmt,...)
396{
397 va_list ap;
398 int len;
399
400 va_start(ap, fmt);
401 len = vsnprintf(kstr->buf, sizeof(kstr->buf), fmt, ap);
402 va_end(ap);
403
404 // to mute GCC with its warning regarding set but unused variables
405#ifdef NDEBUG
406 (void)len;
407#endif
408
409 assert((size_t)len < sizeof(kstr->buf));
410}
411
412void
413kstrcatf(Kstring *kstr, const char *fmt,...)

Callers 15

genPointerUpdateFunction · 0.85
sprintfComplexMulUpdateFunction · 0.85
updateOptimResultGenFunction · 0.85
sprintfFastScalarMadFunction · 0.85
sprintfVectorComponentFunction · 0.85
sprintfOffsetVectorFunction · 0.85
sprintfLinearOffsetFunction · 0.85
sprintfLeadingDimensionFunction · 0.85
sprintfGboundKFunction · 0.85
genInitVectCoordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected