Lines Matching refs:fmt

323 write_bits(unsigned int val, const char *fmt)
325 const char *p = fmt;
328 while ((p = strchr(fmt, '|'))) {
329 size_t l = PTR_DIFF(p, fmt);
331 printf("%.*s ", (int)l, fmt);
332 fmt = p + 1;
432 smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf,
438 while (*fmt && buf<maxbuf) {
439 switch (*fmt) {
444 fmt++;
451 fmt++;
460 p = strchr(++fmt, '}');
461 l = PTR_DIFF(p, fmt);
466 strncpy(bitfmt, fmt, l);
468 fmt = p + 1;
477 int l = atoi(fmt + 1);
480 fmt++;
481 while (isdigit((unsigned char)*fmt))
482 fmt++;
487 fmt++;
496 fmt++;
507 fmt++;
518 fmt++;
529 fmt++;
545 fmt++;
555 fmt++;
566 fmt++;
577 fmt++;
582 fmt++;
583 switch (*fmt) {
608 fmt++;
619 s = unistr(buf, &len, (*fmt == 'R') ? 0 : unicodestr);
624 fmt++;
639 s = unistr(buf + 1, &len, (*fmt == 'Y') ? 0 : unicodestr);
644 fmt++;
649 int l = atoi(fmt + 1);
653 fmt++;
654 while (isdigit((unsigned char)*fmt))
655 fmt++;
663 fmt++;
664 while (isdigit((unsigned char)*fmt))
665 fmt++;
676 fmt++;
681 int l = atoi(fmt + 1);
685 fmt++;
686 while (isdigit((unsigned char)*fmt))
687 fmt++;
692 int t = atoi(fmt+1);
718 fmt++;
719 while (isdigit((unsigned char)*fmt))
720 fmt++;
730 switch (atoi(fmt + 1)) {
767 fmt++;
768 while (isdigit((unsigned char)*fmt))
769 fmt++;
773 putchar(*fmt);
774 fmt++;
779 if (buf >= maxbuf && *fmt)
791 smb_fdata(const u_char *buf, const char *fmt, const u_char *maxbuf,
798 while (*fmt) {
799 switch (*fmt) {
801 fmt++;
805 buf2 = smb_fdata(buf, fmt, maxbuf, unicodestr);
816 fmt++;
822 fmt++;
827 fmt++;
832 fmt++;
836 p = strchr(fmt, ']');
837 if ((size_t)(p - fmt + 1) > sizeof(s)) {
841 strncpy(s, fmt, p - fmt);
842 s[p - fmt] = '\0';
843 fmt = p + 1;
850 putchar(*fmt);
851 fmt++;