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

Mono.Unix.Native.Stdlib.fputs Method

Output a line to a FILE stream. [Edit]

public static int fputs (string s, IntPtr stream)

Parameters

s
The string to write. [Edit]
stream
The FILE stream to write to. [Edit]

Returns

The fputs function returns 0 on success and Stdlib.EOF on error, and Stdlib.GetLastError indicates the error.

Usage

The following errors are specified:

ErrorDetails
Errno.EBADFThe stream argument not a writable stream.

fputs may also fail for any of the errors specified for the routines Syscall.write(2).

[Edit]

Remarks

The function fputs() writes the string pointed to by s to the stream pointed to by stream. [Edit]

Requirements

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