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

Mono.Unix.Native.Stdlib.snprintf Method

Print a string into a buffer. [Edit]

[System.CLSCompliant(false)]
public static int snprintf (System.Text.StringBuilder s, ulong n, string message)

Parameters

s
The buffer to print the message into. [Edit]
n
The size of the buffer. [Edit]
message
The message to print. [Edit]

Returns

Returns the number of characters printed or the number of characters that would have been printed if the size were unlimited (again, not including the final '\0'). [Edit]

Remarks

The snprintf function will fill at most n characters of the input buffer with the string message. [Edit]

Requirements

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