MCPcopy Create free account
hub / github.com/Singular/Singular / ToStr

Function ToStr

ppcc/adlib/str.cc:305–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305Str *ToStr(Int x) {
306 char buffer[sizeof(LongInt) * 4 + 1];
307 sprintf(buffer, "%" LONG_FMT "d", (LongInt) x);
308 return S(buffer);
309}
310
311Str *ToStr(Word x) {
312 char buffer[sizeof(LongWord) * 4 + 1];

Callers 2

SFunction · 0.85
operator()Method · 0.85

Calls 1

SFunction · 0.70

Tested by 1

operator()Method · 0.68