Mercurial > hg > Members > kono > nitros9-code
diff docs/ccguide/printf.refentry @ 466:bea58398bb15
Skeletons for the C Compiler User's Guide, 1983
author | roug |
---|---|
date | Wed, 02 Oct 2002 21:17:53 +0000 |
parents | |
children | f0c8d53e5a50 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/ccguide/printf.refentry Wed Oct 02 21:17:53 2002 +0000 @@ -0,0 +1,51 @@ +<refentry id="printf"> + +<refnamediv> +<refname>printf</refname> +<refname>fprintf</refname> +<refname>sprintf</refname> +<refpurpose>formatted output</refpurpose> +</refnamediv> + +<refsynopsisdiv> + +<funcsynopsis> +<funcsynopsisinfo> +#include <stdio.h> +</funcsynopsisinfo> +<funcprototype> + <funcdef><function>printf</function></funcdef> + <paramdef>char *<parameter>control</parameter></paramdef> + <paramdef>..</paramdef> +</funcprototype> + +<funcprototype> + <funcdef><function>fprintf</function></funcdef> + <paramdef>FILE *<parameter>fp</parameter></paramdef> + <paramdef>char *<parameter>control</parameter></paramdef> + <paramdef>...</paramdef> +</funcprototype> + +<funcprototype> + <funcdef><function>sprintf</function></funcdef> + <paramdef>char *<parameter>string</parameter></paramdef> + <paramdef>char *<parameter>control</parameter></paramdef> + <paramdef>...</paramdef> +</funcprototype> +</funcsynopsis> + +</refsynopsisdiv> + +<refsect1><title>Description</title> +<para> +Thse three functions are used to place numbers and strings on +the output in formatted, human readable form. +</para> +<para> +Fprintf places its output on the file "fp", printf on the +standard output, and sprintf in the buffer pointed to by +"string". NOTE that it is the user's responsibility to ensure +that this buffer is large enough. +</para> +</refsect1> +</refentry>