snprintf 898 complex.c (void)snprintf(s, sizeof s, "%.0f", RFLOAT_VALUE(x)); snprintf 114 dln.c snprintf(*buf, len, FUNCNAME_PATTERN, slash + 1); snprintf 918 dln.c snprintf(p, len, "lib%s.a", lib+2); snprintf 1182 dln.c snprintf(errbuf, 1024, "load failed - %s ", pathname); snprintf 1037 encoding.c snprintf(cp, sizeof cp, "CP%d", GetOEMCP()); snprintf 1223 encoding.c snprintf(cp, sizeof(cp), "CP%d", GetConsoleCP()); snprintf 34 error.c return snprintf(buf, len, "%s: ", file); snprintf 37 error.c return snprintf(buf, len, "%s:%d: ", file, line); snprintf 115 error.c snprintf(buf, BUFSIZ, "warning: %s", fmt); snprintf 131 error.c snprintf(buf, BUFSIZ, "warning: %s", fmt); snprintf 158 error.c snprintf(buf, BUFSIZ, "warning: %s", fmt); snprintf 174 error.c snprintf(buf, BUFSIZ, "warning: %s", fmt); snprintf 906 error.c snprintf(name, sizeof(name), "E%03d", n); snprintf 1158 error.c snprintf(buf, BUFSIZ, "warning: %s", fmt); snprintf 1159 error.c snprintf(buf+strlen(buf), BUFSIZ-strlen(buf), ": %s", strerror(errno_save)); snprintf 213 ext/dl/cfunc.c snprintf(str, str_size - 1, snprintf 296 ext/dl/cptr.c snprintf(str, 1023, "#<%s:%p ptr=%p size=%ld free=%p>", snprintf 4 ext/json/ext/generator/unicode.c snprintf(buf, 7, "\\u%04x", (unsigned int) (character)); \ snprintf 299 ext/openssl/ossl.c len += snprintf(buf+len, BUFSIZ-len, "%s%s", (len ? ": " : ""), msg); snprintf 187 ext/openssl/ossl_ssl.c snprintf(buf, sizeof(buf), "@%s", ossl_sslctx_attrs[i]); snprintf 142 ext/pty/pty.c snprintf(buf, sizeof(buf), "pty - %s: %ld", state, (long)info->child_pid); snprintf 399 ext/pty/pty.c snprintf(MasterName, sizeof MasterName, MasterDevice, *p); snprintf 402 ext/pty/pty.c snprintf(SlaveName, sizeof SlaveName, SlaveDevice, *p); snprintf 11095 ext/ripper/ripper.c snprintf(errbuf, len, mixed_msg, \ snprintf 5695 ext/ripper/ripper.y snprintf(errbuf, len, mixed_msg, \ snprintf 124 ext/socket/getnameinfo.c snprintf(numaddr, numaddr_len, "%s", inet_ntoa(in)); snprintf 127 ext/socket/getnameinfo.c snprintf(numaddr, numaddr_len, "%d.%d.%d.%d", snprintf 175 ext/socket/getnameinfo.c snprintf(numserv, sizeof(numserv), "%d", ntohs(port)); snprintf 214 ext/socket/socket.c snprintf(serv, servlen, "%d", sa6->sin6_port); snprintf 904 ext/socket/socket.c snprintf(pbuf, len, "%ld", FIX2LONG(port)); snprintf 3403 ext/socket/socket.c snprintf(pbuf, sizeof(pbuf), "%ld", NUM2LONG(port)); snprintf 1084 ext/strscan/strscan.c len = snprintf(buf, BUFSIZE, "#<%s (uninitialized)>", snprintf 1089 ext/strscan/strscan.c len = snprintf(buf, BUFSIZE, "#<%s fin>", snprintf 1095 ext/strscan/strscan.c len = snprintf(buf, BUFSIZE, "#<%s %ld/%ld @ %s>", snprintf 1103 ext/strscan/strscan.c len = snprintf(buf, BUFSIZE, "#<%s %ld/%ld %s @ %s>", snprintf 168 ext/syslog/syslog.c snprintf(buf, sizeof(buf), snprintf 176 ext/syslog/syslog.c snprintf(buf, sizeof(buf), snprintf 97 ext/tk/stubs.c snprintf(tcl_name, sizeof tcl_name, TCL_NAME, DLEXT); snprintf 146 ext/tk/stubs.c snprintf(tk_name, sizeof tk_name, TK_NAME, DLEXT); snprintf 3097 ext/win32ole/win32ole.c snprintf(g_lcid_to_check, sizeof(g_lcid_to_check), "%08lx", lcid); snprintf 241 ext/zlib/zlib.c snprintf(buf, BUFSIZ, "unknown zlib error %d: %s", err, msg); snprintf 2187 file.c snprintf(buf, len, "(%.*s%s, %.*s%s)", snprintf 2030 hash.c snprintf(environ[i],len,"%s=%s",name,value); /* all that work just for this */ snprintf 151 include/ruby/missing.h RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...); snprintf 900 iseq.c snprintf(opti, sizeof(opti), "Opt=%ld", snprintf 905 iseq.c snprintf(argi, sizeof(argi), "%s%s%s%s%s", /* arg, opts, rest, post block */ snprintf 913 iseq.c snprintf(info, sizeof(info), "%s%s%s%s", name ? name : "?", snprintf 976 iseq.c snprintf(buff, sizeof(buff), "label_%u", idx); snprintf 369 marshal.c snprintf(buf, sizeof(buf), "%.*g", FLOAT_DIG, d); snprintf 533 numeric.c snprintf(buf, sizeof(buf), "%#.15g", value); /* ensure to print decimal point */ snprintf 538 numeric.c snprintf(buf, sizeof(buf), "%#.14e", value); snprintf 1564 numeric.c snprintf(buf, sizeof(buf), "%-.10g", RFLOAT_VALUE(val)); snprintf 1710 numeric.c snprintf(buf, sizeof(buf), "%-.10g", RFLOAT_VALUE(val)); snprintf 11027 parse.c snprintf(errbuf, len, mixed_msg, \ snprintf 5695 parse.y snprintf(errbuf, len, mixed_msg, \ snprintf 1986 re.c snprintf(escbuf, sizeof(escbuf), "\\x%02X", chbuf[0]&0xff); snprintf 2012 re.c snprintf(escbuf, sizeof(escbuf), "\\x%02X", (int)uv); snprintf 803 sprintf.c snprintf(fbuf, sizeof(fbuf), "%%l%c", c); snprintf 804 sprintf.c snprintf(nbuf, sizeof(nbuf), fbuf, v); snprintf 812 sprintf.c snprintf(fbuf, sizeof(fbuf), "%%l%c", *p == 'X' ? 'x' : *p); snprintf 813 sprintf.c snprintf(++s, sizeof(nbuf) - 1, fbuf, v); snprintf 983 sprintf.c snprintf(&buf[blen], need + 1, "%*s", need, ""); snprintf 1021 sprintf.c snprintf(&buf[blen], need, fbuf, fval); snprintf 1055 sprintf.c snprintf(buf, end - buf, "%d", width); snprintf 1060 sprintf.c snprintf(buf, end - buf, ".%d", prec); snprintf 288 strftime.c l = snprintf(s, endp - s, \ snprintf 532 strftime.c i = snprintf(s, endp - s, (padding == ' ' ? "%*ld" : "%.*ld"), snprintf 624 strftime.c w = snprintf(s, endp - s, "%2d-%3.3s-%4ld", snprintf 713 strftime.c snprintf(tbuf, w + 1, "%.*ld", w, n); snprintf 717 strftime.c snprintf(s, endp - s, "%.*ld", w, n); snprintf 729 strftime.c i = snprintf(s, endp - s, "%ld-%02d-%02d", snprintf 1360 transcode.c snprintf(charef_buf, sizeof(charef_buf), "&#x%X;", u); snprintf 111 vm_dump.c snprintf(posbuf, MAX_POSBUF, "%s:%d", RSTRING_PTR(cfp->iseq->filename), line); snprintf 117 vm_dump.c snprintf(posbuf, MAX_POSBUF, ":%s", rb_id2name(cfp->method_id)); snprintf 4262 win32/win32.c snprintf(p, strlen(p) + 1, "%x-%lx", rb_w32_getpid(), serial++);