Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for voidFunc (0.06 sec)

  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,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 01 22:52:54 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top