@deffn Macro SNV_UNLIMITED
@fnindex SNV_UNLIMITED

Used to denote that there is no upper limit to the number of characters
that can safely be written to a stream.

@end deffn

@deftypefn Function int sstream_printfv (STREAM *s@var{stream}, const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex stream_printfv


Format the elements of @var{args} according to @var{format}, and write
the results to @var{stream}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int sstream_vprintf (STREAM *s@var{stream}, const char *f@var{format}, va_list a@var{ap})
@fnindex stream_vprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to @var{stream}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int sstream_printf (STREAM *s@var{stream}, const char *f@var{format}, ...)
@fnindex stream_printf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the standard output stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int fdputc (int c@var{ch}, STREAM *s@var{stream})
@fnindex fdputc


A stream_put_function function for use in putting characters
into STREAMs holding a file descriptor.


The value of @var{ch} that has been put in @var{stream}, or -1 in case of
an error (errno will be set to indicate the type of error).

@end deftypefn

@deftypefn Function int snv_dprintf (int f@var{fd}, const char *f@var{format}, ...)
@fnindex snv_dprintf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the file descriptor @var{fd}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_vdprintf (int f@var{fd}, const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vdprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to the file descriptor @var{fd}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int dprintfv (int f@var{fd}, const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex dprintfv


Format the elements of @var{args} according to @var{format}, and write
the results to file descriptor @var{fd}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int fileputc (int c@var{ch}, STREAM *s@var{stream})
@fnindex fileputc


A stream_put_function function for use in putting characters
into STREAMs holding a FILE*.


The value of @var{ch} that has been put in @var{stream}.

@end deftypefn

@deftypefn Function int snv_printf (const char *f@var{format}, ...)
@fnindex snv_printf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the standard output stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_vprintf (const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to the standard output stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int printfv (const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex printfv


Format the elements of @var{args} according to the string @var{format},
and write the result to the standard output stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_fprintf (FILE *f@var{file}, const char *f@var{format}, ...)
@fnindex snv_fprintf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the @var{file} stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_vfprintf (FILE *f@var{file}, const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vfprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to the @var{file} stream.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int fprintfv (FILE *f@var{file}, const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex fprintfv


Format the elements of @var{args} according to @var{format}, and write
the results to @var{file}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int bufputc (int c@var{ch}, STREAM *s@var{stream})
@fnindex bufputc


A stream_put_function function for use in putting characters
into STREAMs holding a char buffer.


The value of @var{ch} that has been put in @var{stream}.

@end deftypefn

@deftypefn Function int snv_sprintf (char b@var{buffer}[], const char *f@var{format}, ...)
@fnindex snv_sprintf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the string @var{buffer}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_vsprintf (char b@var{buffer}[], const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vsprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to the string @var{buffer}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int sprintfv (char b@var{buffer}[], const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex sprintfv


Format the elements of @var{args} according to @var{format}, and write
the results to the string @var{buffer}.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_snprintf (char b@var{buffer}[], unsigned long l@var{limit}, const char *f@var{format}, ...)
@fnindex snv_snprintf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to the string @var{buffer}, truncating the formatted string
if it reaches @var{limit} characters in length.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snv_vsnprintf (char b@var{buffer}[], unsigned long l@var{limit}, const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vsnprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to the string @var{buffer}, truncating the formatted string
if it reaches @var{limit} characters in length.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int snprintfv (char b@var{buffer}[], unsigned long l@var{limit}, const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex snprintfv


Format the elements of @var{args} according to @var{format}, and write
the results to the string @var{buffer}, truncating the formatted string
if it reaches @var{limit} characters in length.


The number of characters written is returned, unless there is
an error, when %SNV_ERROR is returned.

@end deftypefn

@deftypefn Function int filputc (int c@var{ch}, STREAM *s@var{stream})
@fnindex filputc


A stream_put_function function for use in putting characters
into STREAMs holding a filament*.


The value of @var{ch} that has been put in @var{stream}.

@end deftypefn

@deftypefn Function char* snv_asprintf (const char *f@var{format}, ...)
@fnindex snv_asprintf


Format the elements of @var{va_alist} according to @var{format}, and write
the results to an internally allocated buffer.


The address of the memory which holds the formatted string is
returned (and should be freed by the caller), unless there is
an error, when NULL is returned.

@end deftypefn

@deftypefn Function char* snv_vasprintf (const char *f@var{format}, va_list a@var{ap})
@fnindex snv_vasprintf


Format the elements of @var{ap} according to @var{format}, and write
the results to an internally allocated buffer.


The address of the memory which holds the formatted string is
returned (and should be freed by the caller), unless there is
an error, when NULL is returned.

@end deftypefn

@deftypefn Function char* asprintfv (const char *f@var{format}, snv_constpointer const a@var{args}[])
@fnindex asprintfv


Format the elements of @var{args} according to @var{format}, and write
the results to an internally allocated buffer.


The address of the memory which holds the formatted string is
returned (and should be freed by the caller), unless there is
an error, when NULL is returned.

@end deftypefn

