MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / GetC64Str

Method GetC64Str

secp256k1/Int.cpp:971–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969// ------------------------------------------------
970
971char * Int::GetC64Str(int nbDigit) {
972 char *tmp = (char*) calloc(1,256);
973 char bStr[256];
974 tmp[0] = '{';
975 tmp[1] = 0;
976 for (int i = 0; i< nbDigit; i++) {
977 if (bits64[i] != 0) {
978#ifdef _WIN64
979 sprintf(bStr, "0x%016I64XULL", bits64[i]);
980#else
981 sprintf(bStr, "0x%" PRIx64 "ULL", bits64[i]);
982#endif
983 } else {
984 sprintf(bStr, "0ULL");
985 }
986 strcat(tmp, bStr);
987 if (i != nbDigit -1) strcat(tmp, ",");
988 }
989 strcat(tmp,"}");
990 return tmp;
991}
992
993// ------------------------------------------------
994

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected