snprintf 933 dln.c snprintf(p, len, "lib%s.a", lib+2); snprintf 1127 dln.c size_t len = snprintf(message, size, "%d: ", error); snprintf 1180 dln.c snprintf(errbuf, sizeof(errbuf), "load failed - %s. ", pathname); snprintf 75 error.c return snprintf(buf, len, "%s: ", file); snprintf 78 error.c return snprintf(buf, len, "%s:%d: ", file, line); snprintf 329 error.c snprintf(buf, sizeof(buf), "\n%s\n\n", ruby_description); snprintf 1468 error.c snprintf(name, sizeof(name), "E%03d", n); snprintf 2993 ext/bigdecimal/bigdecimal.c snprintf(buf, sizeof(buf), "1E%"PRIdVALUE, -expo); snprintf 6986 ext/date/date_core.c snprintf(fmt, size, "%c%02ld" ".%%m.%%d", c, FIX2INT(y) - s); snprintf 8326 ext/date/date_core.c if (n > 0) p += snprintf(p, fmt+sizeof(fmt)-p, ".%%%ldN", n); snprintf 110 ext/date/date_strftime.c l = snprintf(s, endp - s, \ snprintf 304 ext/date/date_strftime.c (void)snprintf(s, endp - s, "%0*ld", snprintf 486 ext/date/date_strftime.c i = snprintf(s, endp - s, "%*s", precision - hl, ""); snprintf 497 ext/date/date_strftime.c i = snprintf(s, endp - s, "%.*ld", precision, off / 3600); snprintf 505 ext/date/date_strftime.c i = snprintf(s, endp - s, "%02d", (int)(off / 60)); snprintf 513 ext/date/date_strftime.c i = snprintf(s, endp - s, "%02d", (int)off); snprintf 433 ext/pty/pty.c snprintf(MasterName, sizeof MasterName, MasterDevice, devno); snprintf 437 ext/pty/pty.c snprintf(SlaveName, DEVICELEN, SlaveDevice, devno); snprintf 12026 ext/ripper/ripper.c snprintf(errbuf, len, mixed_msg, \ snprintf 13340 ext/ripper/ripper.c snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); snprintf 6277 ext/ripper/ripper.y snprintf(errbuf, len, mixed_msg, \ snprintf 7591 ext/ripper/ripper.y snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); snprintf 127 ext/socket/getnameinfo.c snprintf(numaddr, numaddr_len, "%s", inet_ntoa(in)); snprintf 130 ext/socket/getnameinfo.c snprintf(numaddr, numaddr_len, "%d.%d.%d.%d", snprintf 177 ext/socket/getnameinfo.c snprintf(numserv, sizeof(numserv), "%d", ntohs(port)); snprintf 654 ext/socket/option.c snprintf(numaddr, numaddr_len, "%s", inet_ntoa(in)); snprintf 657 ext/socket/option.c snprintf(numaddr, numaddr_len, "%d.%d.%d.%d", snprintf 676 ext/socket/option.c return snprintf(buf, len, "%s%u", fail_prefix, ifindex); snprintf 678 ext/socket/option.c return snprintf(buf, len, "%s%s", succ_prefix, ifbuf); snprintf 683 ext/socket/option.c return snprintf(buf, len, "%s%u", fail_prefix, ifindex); snprintf 89 ext/socket/raddrinfo.c snprintf(serv, servlen, "%d", sa6->sin6_port); snprintf 483 ext/socket/raddrinfo.c snprintf(pbuf, pbuflen, "%ld", FIX2LONG(port)); snprintf 1300 ext/socket/socket.c snprintf(pbuf, sizeof(pbuf), "%ld", NUM2LONG(port)); snprintf 2295 ext/win32ole/win32ole.c snprintf(g_lcid_to_check, sizeof(g_lcid_to_check), "%08lx", (unsigned long)lcid); snprintf 5957 gc.c snprintf(ptr, 0x100 - 1, "%s|%s:%d", obj_info(obj), filename, line); snprintf 9141 gc.c snprintf(buff, buff_size, "%s", obj_type_name(obj)); snprintf 9150 gc.c snprintf(buff, buff_size, "%p [%d%s%s%s%s] %s", snprintf 9158 gc.c snprintf(buff, buff_size, "%p [%s] %s", snprintf 9168 gc.c snprintf(buff, buff_size, "%s (temporary internal)", buff); snprintf 9173 gc.c snprintf(buff, buff_size, "%s (%s)", buff, RSTRING_PTR(class_path)); snprintf 9178 gc.c snprintf(buff, buff_size, "%s @%s:%d", buff, RANY(obj)->file, RANY(obj)->line); snprintf 9183 gc.c snprintf(buff, buff_size, "%s (%s)", buff, snprintf 9187 gc.c snprintf(buff, buff_size, "%s [%s%s] len: %d", buff, snprintf 9193 gc.c snprintf(buff, buff_size, "%s %s", buff, RSTRING_PTR(obj)); snprintf 9199 gc.c snprintf(buff, buff_size, "%s %s", buff, RSTRING_PTR(class_path)); snprintf 9206 gc.c snprintf(buff, buff_size, "%s %s", buff, type_name); snprintf 9225 gc.c snprintf(buff, buff_size, "%s %s", buff, imemo_name); snprintf 9230 gc.c snprintf(buff, buff_size, "%s (called_id: %s, type: %s, alias: %d, owner: %s, defined_class: %s)", buff, snprintf 9242 gc.c snprintf(buff, buff_size, "%s %s@%s:%d", buff, snprintf 3278 hash.c snprintf(mem_ptr, mem_size, "%s=%s", name, value); snprintf 3331 hash.c snprintf(environ[i],len,"%s=%s",name,value); /* all that work just for this */ snprintf 1544 iseq.c snprintf(opti, sizeof(opti), "Opt=%"PRIdVALUE, snprintf 1549 iseq.c snprintf(argi, sizeof(argi), "%s%s%s%s%s", /* arg, opts, rest, post block */ snprintf 23 localeinit.c #define CP_FORMAT(buf, codepage) snprintf(buf, sizeof(buf), "CP%u", (codepage)) snprintf 406 marshal.c len += snprintf(buf + len, sizeof(buf) - len, "e%d", decpt - 1); snprintf 2497 numeric.c snprintf(buf, sizeof(*pbuf), "%-.10g", RFLOAT_VALUE(val)); snprintf 940 pack.c snprintf(unknown, sizeof(unknown), "\\x%.2x", type & 0xff); snprintf 11950 parse.c snprintf(errbuf, len, mixed_msg, \ snprintf 13264 parse.c snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); snprintf 6277 parse.y snprintf(errbuf, len, mixed_msg, \ snprintf 7591 parse.y snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit); snprintf 2591 process.c #define ERRMSG1(str, a) do { if (errmsg && 0 < errmsg_buflen) snprintf(errmsg, errmsg_buflen, (str), (a)); } while (0) snprintf 2592 process.c #define ERRMSG2(str, a, b) do { if (errmsg && 0 < errmsg_buflen) snprintf(errmsg, errmsg_buflen, (str), (a), (b)); } while (0) snprintf 443 re.c snprintf(b, sizeof(b), "\\x%02X", c); snprintf 2353 re.c snprintf(escbuf, sizeof(escbuf), "\\x%02X", chbuf[0]&0xff); snprintf 2379 re.c snprintf(escbuf, sizeof(escbuf), "\\x%02X", (int)uv); snprintf 941 sprintf.c snprintf(nbuf, sizeof(nbuf), "%ld", v); snprintf 1152 sprintf.c snprintf(&buf[blen], need + 1, "%*s", need, ""); snprintf 1190 sprintf.c snprintf(&buf[blen], need, fbuf, fval); snprintf 1225 sprintf.c snprintf(buf, end - buf, "%d", width); snprintf 1230 sprintf.c snprintf(buf, end - buf, ".%d", prec); snprintf 190 st.c f = fopen((snprintf(fname, sizeof(fname), "/tmp/col%ld", (long)getpid()), fname), "w"); snprintf 584 strftime.c i = snprintf(s, endp - s, (padding == ' ' ? "%+*ld" : "%+.*ld"), snprintf 596 strftime.c i = snprintf(s, endp - s, "%02d", (int)(off / 60)); snprintf 604 strftime.c i = snprintf(s, endp - s, "%02d", (int)off); snprintf 786 strftime.c snprintf(s, endp - s, "%09ld", subsec); snprintf 794 strftime.c snprintf(s, endp - s, "%0*ld", precision, subsec); snprintf 816 strftime.c (void)snprintf(s, endp - s, "%0*ld", precision, FIX2LONG(subsec)); snprintf 5368 string.c snprintf(buf, CHAR_ESC_LEN, "%c", c); snprintf 5371 string.c snprintf(buf, CHAR_ESC_LEN, "\\u%04X", c); snprintf 5374 string.c snprintf(buf, CHAR_ESC_LEN, "\\u{%X}", c); snprintf 5379 string.c snprintf(buf, CHAR_ESC_LEN, "\\x%02X", c); snprintf 5382 string.c snprintf(buf, CHAR_ESC_LEN, "\\x{%X}", c); snprintf 5412 string.c snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377); snprintf 5501 string.c snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377); snprintf 5684 string.c snprintf(q, qend-q, "u{%x}", cc); snprintf 5689 string.c snprintf(q, qend-q, "x%02X", c); snprintf 5696 string.c snprintf(q, qend-q, nonascii_suffix, enc->name); snprintf 1526 thread_pthread.c n = snprintf(buf, sizeof(buf), "%s:%d", name, NUM2INT(ptr[1])); snprintf 1421 transcode.c snprintf(charef_buf, sizeof(charef_buf), "&#x%X;", u); snprintf 3183 vm.c snprintf(buff, 0x10, "%d %s %-4s", i, getsetstr[j], regstrs[i]); snprintf 104 vm_dump.c snprintf(posbuf, MAX_POSBUF, ":%s", iseq_name); snprintf 112 vm_dump.c snprintf(posbuf, MAX_POSBUF, "%s:%d", RSTRING_PTR(cfp->iseq->body->location.path), line); snprintf 118 vm_dump.c snprintf(posbuf, MAX_POSBUF, ":%s", iseq_name); snprintf 815 vm_dump.c ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%016zx", reg_name, reg); snprintf 817 vm_dump.c ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%08zx", reg_name, reg); snprintf 6286 win32/win32.c snprintf(name + width_of_prefix, width_of_ids, "%.*"PRI_PIDT_PREFIX"x-%.*lx", snprintf 7473 win32/win32.c snprintf(numaddr, numaddr_len, "%s", inet_ntoa(in));