Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 29) sorted by relevance

12

/third_party/ulib/musl/src/network/
A Dinet_ntop.c14 if (snprintf(s, l, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]) < l) in inet_ntop()
19 snprintf(buf, sizeof buf, "%x:%x:%x:%x:%x:%x:%x:%x", 256 * a[0] + a[1], in inet_ntop()
23 snprintf(buf, sizeof buf, "%x:%x:%x:%x:%x:%x:%d.%d.%d.%d", 256 * a[0] + a[1], in inet_ntop()
A Dinet_ntoa.c7 snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]); in inet_ntoa()
/third_party/ulib/musl/src/time/
A Dstrftime.c88 *l = snprintf(*s, sizeof *s, "%2d", tm->tm_mday); in __strftime_fmt_1()
179 *l = snprintf(*s, sizeof *s, "+%lld", val); in __strftime_fmt_1()
189 *l = snprintf(*s, sizeof *s, "%+.2ld%.2ld", (tm->__tm_gmtoff) / 3600, in __strftime_fmt_1()
206 *l = snprintf(*s, sizeof *s, "%0*lld", width, val); in __strftime_fmt_1()
A D__asctime.c10 if (snprintf(buf, 26, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n", __nl_langinfo(ABDAY_1 + tm->tm_wday), in __asctime()
/third_party/ulib/linenoise/
A Dlinenoise.c347 snprintf(seq,32,"\x1b[%dD",cols-start);
579 snprintf(seq,64,"\r");
587 snprintf(seq,64,"\x1b[0K");
590 snprintf(seq,64,"\r\x1b[%dC", (int)(pos+plen));
619 snprintf(seq,64,"\x1b[%dB", old_rows-rpos);
626 snprintf(seq,64,"\r\x1b[0K\x1b[1A");
632 snprintf(seq,64,"\r\x1b[0K");
650 snprintf(seq,64,"\r");
663 snprintf(seq,64,"\x1b[%dA", rows-rpos2);
671 snprintf(seq,64,"\r\x1b[%dC", col);
[all …]
/third_party/ulib/musl/src/legacy/
A Dcuserid.c11 snprintf(buf, L_cuserid, "%s", pw.pw_name); in cuserid()
/third_party/ulib/musl/src/conf/
A Dconfstr.c17 return snprintf(buf, len, "%s", s) + 1; in confstr()
/third_party/ulib/musl/src/stdio/
A Dsnprintf.c4 int snprintf(char* restrict s, size_t n, const char* restrict fmt, ...) { in snprintf() function
A Dvfwscanf.c350 snprintf(tmp, sizeof tmp, "%.*s%.0d%s%c%%lln", 1 + !dest, "%*", width, in vfwscanf()
A Dvfwprintf.c410 snprintf(charfmt, sizeof charfmt, "%%%s%s%s%s%s*.*%c%c", (fl & ALT_FORM) ? "#" : "", in wprintf_core()
/third_party/ulib/musl/third_party/tre/
A Dregerror.c35 return 1 + snprintf(buf, size, "%s", s); in regerror()
/third_party/lib/acpica/source/include/acpica/platform/
A Daccygwin.h103 snprintf (char *s, size_t n, const char *format, ...);
/third_party/ulib/musl/src/misc/
A Dopenpty.c22 snprintf(name, sizeof buf, "/dev/pts/%d", n); in openpty()
A Dsyslog.c94 l = snprintf(buf, sizeof buf, "<%d>%s %n%s%s%.0d%s: ", priority, timebuf, &hlen, log_ident, in _vsyslog()
/third_party/ulib/usbhost/
A Dusbhost.c93 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name); in find_existing_devices_bus()
111 snprintf(busname, sizeof(busname), USB_FS_DIR "/%s", de->d_name); in find_existing_devices()
128 snprintf(path, sizeof(path), USB_FS_DIR "/%03d", i); in watch_existing_subdirs()
227 snprintf(path, sizeof(path), USB_FS_DIR "/%s", event->name); in usb_host_read_event()
247 snprintf(path, sizeof(path), USB_FS_DIR "/%03d/%s", i, event->name); in usb_host_read_event()
382 snprintf(result, strlen(USB_FS_ID_FORMAT) - 1, USB_FS_ID_FORMAT, bus, dev); in usb_device_get_name_from_unique_id()
/third_party/ulib/musl/src/thread/
A Dallocate.c183 if (snprintf(vmo_name, ZX_MAX_NAME_LEN, "%s:%p/TLS=%#zx", in __allocate_thread()
185 snprintf(vmo_name, ZX_MAX_NAME_LEN, "%s:%p", in __allocate_thread()
/third_party/ulib/musl/src/locale/
A Dstrfmon.c61 l = snprintf(s, n, "%*.*f", w, rp, x); in vstrfmon_l()
/third_party/uapp/dash/src/bltin/
A Dzircon.c110 snprintf(tmp, sizeof(tmp), "%s/%s", dirn, de->d_name); in zxc_ls()
259 snprintf(full_filename, PATH_MAX, "%s%s", dest_name, filename_start); in mv_or_cp_to_dir()
261 snprintf(full_filename, PATH_MAX, "%s/%s", dest_name, filename_start); in mv_or_cp_to_dir()
/third_party/uapp/kilo/
A Dkilo.c369 snprintf(seq,32,"\x1b[%d;%dH",orig_row,orig_col);
915 int welcomelen = snprintf(welcome,sizeof(welcome),
959 int clen = snprintf(buf,sizeof(buf),"\x1b[%dm",color);
976 int len = snprintf(status, sizeof(status), "%.20s - %d lines %s",
978 int rlen = snprintf(rstatus, sizeof(rstatus),
1012 snprintf(buf,sizeof(buf),"\x1b[%d;%dH",E.cy+1,cx);
/third_party/uapp/mkfs-msdosfs/
A Dnewfs_msdos.c157 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname); in main()
A Dmkfs_msdos.c343 snprintf(buf, sizeof(buf), "/boot/%s", bname); in mkfs_msdos()
569 snprintf(buf, sizeof(buf), "FAT%u", fat); in mkfs_msdos()
/third_party/ulib/musl/include/
A Dstdio.h101 int snprintf(char* __restrict, size_t, const char* __restrict, ...) __printflike(3, 4);
/third_party/uapp/dash/src/
A Doutput.c359 int n = snprintf(str, sizeof(str) - 1, "\033]2;%s", title); in settitle()
/third_party/lib/acpica/source/os_specific/service_layers/
A Doslinuxtbl.c520 snprintf (Format, 32, "%s=%s", Keyword, "%llx"); in OslFindRsdpViaEfiByKeyword()
/third_party/ulib/musl/ldso/
A Ddynlink.c1226 snprintf(buf, buf_size, "build_id_too_large_%u", hdr.hdr.n_descsz); in read_buildid()
1229 snprintf(&buf[i * 2], 3, "%02x", payload[i]); in read_buildid()
1353 snprintf(synthetic_name, sizeof(synthetic_name), in load_library_vmo()
1356 snprintf(synthetic_name, sizeof(synthetic_name), in load_library_vmo()

Completed in 34 milliseconds

12