Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for voidFunc (0.04 seconds)

  1. src/cmd/cgo/doc.go

    assignment context to retrieve both the return value (if any) and the
    C errno variable as an error (use _ to skip the result value if the
    function returns void). For example:
    
    	n, err = C.sqrt(-1)
    	_, err := C.voidFunc()
    	var n, err = C.sqrt(1)
    
    Note that the C errno value may be non-zero, and thus the err result may be
    non-nil, even if the function call is successful. Unlike normal Go conventions,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Dec 08 22:37:14 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top