Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.fwrite Method

Write to a binary FILE stream. [Edit]

[System.CLSCompliant(false)]
public static ulong fwrite (byte[] ptr, IntPtr stream)

Parameters

ptr
The data to write. [Edit]
stream
The binary FILE stream to write to. [Edit]

Returns

The function fwrite() advance the file position indicator for the stream by the number of bytes written. It returns the number of objects written. If an error occurs, or the end-of-file is reached, the return value is a short object count (or zero).

The function fwrite() returns a value less than nmemb only if a write error has occurred.

[Edit]

Remarks

The function fwrite() writes ptr.Length bytes to the stream pointed to by stream, obtaining them from the location given by ptr. [Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0