write


Description:


public ssize_t write (int fd, string buf, size_t n, Cancellable? cancellable = null) throws Error

Cancellable libc write replacement.

Code that intends to be portable to Win32 should call this function only on file descriptors returned from open , not on sockets.

Parameters:

fd

file descriptor

buf

buffer to write

n

number of bytes of buf to write

cancellable

optional Cancellable object, or null

Returns:

number of bytes written or -1 on fail. On failure, errno will be set appropriately.


Namespace: Camel
Package: camel-1.2



2022 vala-language.org