Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,699 for vfprintf (0.14 sec)

  1. src/runtime/cgo/gcc_fatalf.c

    #include <stdarg.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include "libcgo.h"
    
    void
    fatalf(const char* format, ...)
    {
    	va_list ap;
    
    	fprintf(stderr, "runtime/cgo: ");
    	va_start(ap, format);
    	vfprintf(stderr, format, ap);
    	va_end(ap);
    	fprintf(stderr, "\n");
    	abort();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 526 bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_android.c

    	// When running from an .apk, /dev/stderr and /dev/stdout
    	// redirect to /dev/null. And when running a test binary
    	// via adb shell, it's easy to miss logcat.
    
    	fprintf(stderr, "runtime/cgo: ");
    	va_start(ap, format);
    	vfprintf(stderr, format, ap);
    	va_end(ap);
    	fprintf(stderr, "\n");
    
    	va_start(ap, format);
    	__android_log_vprint(ANDROID_LOG_FATAL, "runtime/cgo", format, ap);
    	va_end(ap);
    
    	abort();
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  3. test/rotate.go

    func gentest(b *bufio.Writer, bits uint, unsigned, inverted bool) {
    	fmt.Fprintf(b, "func init() {\n")
    	defer fmt.Fprintf(b, "}\n")
    	n := 0
    
    	// Generate tests for left/right and right/left.
    	for l := uint(0); l <= bits; l++ {
    		for r := uint(0); r <= bits; r++ {
    			for o, op := range cop {
    				typ := fmt.Sprintf("int%d", bits)
    				v := fmt.Sprintf("i%d", bits)
    				if unsigned {
    					typ = "u" + typ
    					v = "u" + v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    // example, fmt.Printf forwards to fmt.Fprintf. We avoid relying on the
    // driver applying analyzers to standard packages because "go vet" does
    // not do so with gccgo, and nor do some other build systems.
    var isPrint = stringSet{
    	"fmt.Appendf":  true,
    	"fmt.Append":   true,
    	"fmt.Appendln": true,
    	"fmt.Errorf":   true,
    	"fmt.Fprint":   true,
    	"fmt.Fprintf":  true,
    	"fmt.Fprintln": true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. src/fmt/example_test.go

    // Print, Println, and Printf lay out their arguments differently. In this example
    // we can compare their behaviors. Println always adds blanks between the items it
    // prints, while Print adds blanks only between non-string arguments and Printf
    // does exactly what it is told.
    // Sprint, Sprintln, Sprintf, Fprint, Fprintln, and Fprintf behave the same as
    // their corresponding Print, Println, and Printf functions shown here.
    func Example_printers() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/testdata/gen/arithConstGen.go

    	case "int16":
    		ans = int64(int16(ans))
    	case "int8":
    		ans = int64(int8(ans))
    	}
    	return fmt.Sprintf("%d", ans)
    }
    
    func main() {
    	w := new(bytes.Buffer)
    	fmt.Fprintf(w, "// Code generated by gen/arithConstGen.go. DO NOT EDIT.\n\n")
    	fmt.Fprintf(w, "package main;\n")
    	fmt.Fprintf(w, "import \"testing\"\n")
    
    	fncCnst1 := template.Must(template.New("fnc").Parse(
    		`//go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  7. src/math/bits/make_examples.go

    				} else {
    					fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d))\n", size, f, e.in)
    				}
    				fmt.Fprintf(w, "\t// Output:\n")
    				fmt.Fprintf(w, "\t// %0*b\n", size, e.in)
    				fmt.Fprintf(w, "\t// %0*b\n", size, e.out[i])
    				if e.name == "RotateLeft" && e.out2[i] != nil {
    					fmt.Fprintf(w, "\t// %0*b\n", size, e.out2[i])
    				}
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/output/output.go

    func (tp *TextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error {
    	_, err := fmt.Fprintf(writer, "%+v\n", obj)
    	return err
    }
    
    // Fprintf is a wrapper around fmt.Fprintf
    func (tp *TextPrinter) Fprintf(writer io.Writer, format string, args ...interface{}) (n int, err error) {
    	return fmt.Fprintf(writer, format, args...)
    }
    
    // Fprintln is a wrapper around fmt.Fprintln
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 08:22:45 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/cmd/cgo/out.go

    			fmt.Fprintf(fgcc, "(void*)")
    		}
    	}
    	if n.Kind == "macro" {
    		fmt.Fprintf(fgcc, "%s;\n", n.C)
    	} else {
    		fmt.Fprintf(fgcc, "%s(", n.C)
    		for i := range n.FuncType.Params {
    			if i > 0 {
    				fmt.Fprintf(fgcc, ", ")
    			}
    			fmt.Fprintf(fgcc, "p%d", i)
    		}
    		fmt.Fprintf(fgcc, ");\n")
    	}
    	fmt.Fprintf(fgcc, "\t_cgo_tsan_release();\n")
    	if t := n.FuncType.Result; t != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. src/fmt/fmt_test.go

    	{1, `Sprintf("%g")`, func() { _ = Sprintf("%g", float32(3.14159)) }},
    	{0, `Fprintf(buf, "%s")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%s", "hello") }},
    	{0, `Fprintf(buf, "%x")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%x", 7) }},
    	{0, `Fprintf(buf, "%x")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%x", 1<<16) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top