MCPcopy Create free account
hub / github.com/WheretIB/nullc / safeprintf

Function safeprintf

SuperCalc.cpp:934–942  ·  view source on GitHub ↗

zero-terminated safe sprintf

Source from the content-addressed store, hash-verified

932
933// zero-terminated safe sprintf
934int safeprintf(char* dst, size_t size, const char* src, ...)
935{
936 va_list args;
937 va_start(args, src);
938
939 int result = vsnprintf(dst, size, src, args);
940 dst[size-1] = '\0';
941 return result;
942}
943
944ExternVarInfo *codeVars = NULL;
945unsigned int codeTypeCount = 0;

Callers 11

GetBasicVariableInfoFunction · 0.85
FillArrayVariableInfoFunction · 0.85
FillComplexVariableInfoFunction · 0.85
FillAutoInfoFunction · 0.85
FillAutoArrayInfoFunction · 0.85
FillFunctionPointerInfoFunction · 0.85
FillVariableInfoTreeFunction · 0.85
UpdateWatchedVariablesFunction · 0.85
PipeInitFunction · 0.85
BroadcastThreadFunction · 0.85
WndProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected