Searched defs:snprintf (Results 51 - 75 of 107) sorted by relevance

12345

/external/lz4/examples/
H A DHCStreaming_ringBuffer.c10 # define snprintf sprintf_s macro
179 snprintf(inpFilename, 256, "%s", argv[fileID]);
180 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[fileID], 9);
181 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[fileID], 9);
H A DblockStreaming_doubleBuffer.c7 # define snprintf sprintf_s macro
150 snprintf(inpFilename, 256, "%s", argv[1]);
151 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], BLOCK_BYTES);
152 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES);
H A DblockStreaming_lineByLine.c7 # define snprintf sprintf_s macro
165 snprintf(inpFilename, 256, "%s", argv[1]);
166 snprintf(lz4Filename, 256, "%s.lz4s", argv[1]);
167 snprintf(decFilename, 256, "%s.lz4s.dec", argv[1]);
H A DblockStreaming_ringBuffer.c10 # define snprintf sprintf_s macro
154 snprintf(inpFilename, 256, "%s", argv[1]);
155 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], 0);
156 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], 0);
H A DdictionaryRandomAccess.c5 # define snprintf sprintf_s macro
214 snprintf(inpFilename, 256, "%s", argv[1]);
215 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], BLOCK_BYTES);
216 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES);
217 snprintf(dictFilename, 256, "%s", argv[2]);
/external/python/cpython2/Modules/zlib/
H A Dgzguts.h98 /* unlike snprintf (which is required in C99, yet still not supported by
103 # define snprintf _snprintf macro
H A Dminigzip.c44 # define snprintf _snprintf macro
471 snprintf(outfile, sizeof(outfile), "%s%s", file, GZ_SUFFIX);
511 snprintf(buf, sizeof(buf), "%s", file);
524 snprintf(buf + len, sizeof(buf) - len, "%s", GZ_SUFFIX);
566 snprintf(outmode, sizeof(outmode), "%s", "wb6 ");
/external/python/cpython3/Include/
H A Dpyerrors.h486 WARNING: The return value of snprintf varies across platforms; do
492 # define snprintf _snprintf macro
/external/python/cpython3/Modules/zlib/
H A Dgzguts.h106 /* unlike snprintf (which is required in C99), _snprintf does not guarantee
110 # define snprintf _snprintf macro
H A Dminigzip.c44 # define snprintf _snprintf macro
471 snprintf(outfile, sizeof(outfile), "%s%s", file, GZ_SUFFIX);
511 snprintf(buf, sizeof(buf), "%s", file);
524 snprintf(buf + len, sizeof(buf) - len, "%s", GZ_SUFFIX);
566 snprintf(outmode, sizeof(outmode), "%s", "wb6 ");
/external/syslinux/gpxe/src/core/
H A Dvsprintf.c333 int snprintf ( char *buf, size_t size, const char *fmt, ... ) { function
/external/tcpdump/missing/
H A Dsnprintf.c459 snprintf (char *str, size_t sz, const char *format, ...) function
/external/tensorflow/tensorflow/core/lib/strings/
H A Dnumbers.cc164 snprintf(buffer, kFastToBufferSize, "%.*g", DBL_DIG, value);
166 // The snprintf should never overflow because the buffer is significantly
176 snprintf(buffer, kFastToBufferSize, "%.*g", DBL_DIG + 2, value);
336 snprintf(buffer, kFastToBufferSize, "%.*g", FLT_DIG, value);
338 // The snprintf should never overflow because the buffer is significantly
345 snprintf(buffer, kFastToBufferSize, "%.*g", FLT_DIG + 3, value);
355 snprintf(buf, sizeof(buf), "%016llx", static_cast<uint64>(fp));
441 snprintf(buf, sizeof(buf), "%s%lldB", neg_str,
456 snprintf(buf, sizeof(buf), ((*unit == 'K') ? "%s%.1f%ciB" : "%s%.2f%ciB"),
159 static_assert(DBL_DIG < 20, �); bool full_precision_needed = true; if (std::abs(value) <= kDoublePrecisionCheckMax) { int snprintf_result = snprintf(buffer, kFastToBufferSize, �, DBL_DIG, value); DCHECK(snprintf_result > 0 && snprintf_result < kFastToBufferSize); full_precision_needed = locale_independent_strtonum<double>(buffer, nullptr) != value; } if (full_precision_needed) { int snprintf_result = snprintf(buffer, kFastToBufferSize, �, DBL_DIG + 2, value); DCHECK(snprintf_result > 0 && snprintf_result < kFastToBufferSize); } return buffer; } namespace { char SafeFirstChar(StringPiece str) { if (str.empty()) return �; return str[0]; } void SkipSpaces(StringPiece* str) { while (isspace(SafeFirstChar(*str))) str->remove_prefix(1); } } bool safe_strto64(StringPiece str, int64* value) { SkipSpaces(&str); int64 vlimit = kint64max; int sign = 1; if (str.Consume(�)) { sign = -1; vlimit = kint64min; } if (!isdigit(SafeFirstChar(str))) return false; int64 result = 0; if (sign == 1) { do { int digit = SafeFirstChar(str) - �; if ((vlimit - digit) / 10 < result) { return false; } result = result * 10 + digit; str.remove_prefix(1); } while (isdigit(SafeFirstChar(str))); } else { do { int digit = SafeFirstChar(str) - �; if ((vlimit + digit) / 10 > result) { return false; } result = result * 10 - digit; str.remove_prefix(1); } while (isdigit(SafeFirstChar(str))); } SkipSpaces(&str); if (!str.empty()) return false; *value = result; return true; } bool safe_strtou64(StringPiece str, uint64* value) { SkipSpaces(&str); if (!isdigit(SafeFirstChar(str))) return false; uint64 result = 0; do { int digit = SafeFirstChar(str) - �; if ((kuint64max - digit) / 10 < result) { return false; } result = result * 10 + digit; str.remove_prefix(1); } while (isdigit(SafeFirstChar(str))); SkipSpaces(&str); if (!str.empty()) return false; *value = result; return true; } bool safe_strto32(StringPiece str, int32* value) { SkipSpaces(&str); int64 vmax = kint32max; int sign = 1; if (str.Consume(�)) { sign = -1; ++vmax; } if (!isdigit(SafeFirstChar(str))) return false; int64 result = 0; do { result = result * 10 + SafeFirstChar(str) - �; if (result > vmax) { return false; } str.remove_prefix(1); } while (isdigit(SafeFirstChar(str))); SkipSpaces(&str); if (!str.empty()) return false; *value = static_cast<int32>(result * sign); return true; } bool safe_strtou32(StringPiece str, uint32* value) { SkipSpaces(&str); if (!isdigit(SafeFirstChar(str))) return false; int64 result = 0; do { result = result * 10 + SafeFirstChar(str) - �; if (result > kuint32max) argument
/external/valgrind/drd/tests/
H A Dunit_vc.c43 UInt VG_(snprintf)(HChar* buf, Int size, const HChar *format, ...) function
/external/zlib/src/
H A Dgzguts.h106 /* unlike snprintf (which is required in C99), _snprintf does not guarantee
110 # define snprintf _snprintf macro
/external/zlib/src/test/
H A Dminigzip.c44 # define snprintf _snprintf macro
471 snprintf(outfile, sizeof(outfile), "%s%s", file, GZ_SUFFIX);
511 snprintf(buf, sizeof(buf), "%s", file);
524 snprintf(buf + len, sizeof(buf) - len, "%s", GZ_SUFFIX);
566 snprintf(outmode, sizeof(outmode), "%s", "wb6 ");
/external/e2fsprogs/misc/
H A Dmk_hugefiles.c77 * overflows, so we don't really need to use snprintf() except as an
78 * additional safety check. So if snprintf() is not present, it's
80 * vsprintf() is guaranteed by C89, while snprintf() is only
98 #define snprintf my_snprintf macro
126 snprintf(path, SYSFS_PATH_LEN,
133 snprintf(ret_path, SYSFS_PATH_LEN,
145 snprintf(path, SYSFS_PATH_LEN, "/sys/block/%s", de->d_name);
157 snprintf(p_path, SYSFS_PATH_LEN, "%s/%s/dev",
165 snprintf(ret_path, SYSFS_PATH_LEN, "%s/%s",
/external/libvncserver/libvncclient/
H A Dsockets.c63 # define snprintf _snprintf macro
371 snprintf(port_s, 10, "%d", port);
546 snprintf(port_str, 8, "%d", port);
H A Dtls_openssl.c60 #define snprintf _snprintf macro
415 snprintf(buf2, sizeof(buf2), (loop>0 ? ", %d" : "%d"), (int)tAuth[loop]);
/external/libvncserver/libvncserver/
H A Dsockets.c119 #define snprintf _snprintf /* Missing in MSVC */ macro
901 snprintf(port_str, 8, "%d", port);
974 snprintf(port_str, 8, "%d", port);
/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.cc49 #define snprintf _snprintf // see comment in strutil.cc macro
99 // 128 bytes should always be enough, but we use snprintf() anyway to be
102 snprintf(buffer, sizeof(buffer), "%d.%d.%d", major, minor, micro);
104 // Guard against broken MSVC snprintf().
217 // the results -- in fact, we probably prefer that. So we use snprintf()
223 /* values which we print with this, but well use snprintf() */ \
226 snprintf(buffer, sizeof(buffer), FORMAT, value); \
227 /* Guard against broken MSVC snprintf(). */ \
/external/tcpdump/
H A Dnetdissect-stdinc.h184 #define snprintf _snprintf macro
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dos.h464 * Note: Some C library implementations of snprintf() may not guarantee null
470 * If the target system does not include snprintf(), see, e.g.,
471 * http://www.ijs.si/software/snprintf/ for an example of a portable
472 * implementation of snprintf.
552 #define os_snprintf snprintf
662 #undef snprintf macro
663 #define snprintf OS_DO_NOT_USE_snprintf macro
/external/wpa_supplicant_8/src/utils/
H A Dos.h464 * Note: Some C library implementations of snprintf() may not guarantee null
470 * If the target system does not include snprintf(), see, e.g.,
471 * http://www.ijs.si/software/snprintf/ for an example of a portable
472 * implementation of snprintf.
552 #define os_snprintf snprintf
662 #undef snprintf macro
663 #define snprintf OS_DO_NOT_USE_snprintf macro
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dos.h464 * Note: Some C library implementations of snprintf() may not guarantee null
470 * If the target system does not include snprintf(), see, e.g.,
471 * http://www.ijs.si/software/snprintf/ for an example of a portable
472 * implementation of snprintf.
552 #define os_snprintf snprintf
662 #undef snprintf macro
663 #define snprintf OS_DO_NOT_USE_snprintf macro

Completed in 2971 milliseconds

12345