changeset 573:d9ab3688bb71

All function prototypes are added.
author roug
date Fri, 01 Nov 2002 10:02:34 +0000
parents e43a77fddcbd
children c49be44efba2
files docs/ccguide/prerr.refentry docs/ccguide/putc.refentry docs/ccguide/puts.refentry docs/ccguide/qsort.refentry
diffstat 4 files changed, 41 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/docs/ccguide/prerr.refentry	Fri Nov 01 10:02:34 2002 +0000
+++ b/docs/ccguide/prerr.refentry	Fri Nov 01 10:02:34 2002 +0000
@@ -8,7 +8,8 @@
 <funcsynopsis>
 <funcprototype>
   <funcdef><function>prerr</function></funcdef>
-  <paramdef>type <parameter>arg1</parameter></paramdef>
+  <paramdef>int <parameter>filnum</parameter></paramdef>
+  <paramdef>int <parameter>errcode</parameter></paramdef>
 </funcprototype>
 </funcsynopsis>
 
--- a/docs/ccguide/putc.refentry	Fri Nov 01 10:02:34 2002 +0000
+++ b/docs/ccguide/putc.refentry	Fri Nov 01 10:02:34 2002 +0000
@@ -1,7 +1,9 @@
 <refentry id="putc">
 <refnamediv>
-<refname>putc</refname>
-<refpurpose>Placeholder</refpurpose>
+<refname>Putc</refname>
+<refname>Putchar</refname>
+<refname>Putw</refname>
+<refpurpose>put character or word in a file</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
@@ -11,7 +13,19 @@
 </funcsynopsisinfo>
 <funcprototype>
   <funcdef><function>putc</function></funcdef>
-  <paramdef>type <parameter>arg1</parameter></paramdef>
+  <paramdef>char <parameter>ch</parameter></paramdef>
+  <paramdef>FILE *<parameter>fp</parameter></paramdef>
+</funcprototype>
+
+<funcprototype>
+  <funcdef><function>putchar</function></funcdef>
+  <paramdef>char <parameter>ch</parameter></paramdef>
+</funcprototype>
+
+<funcprototype>
+  <funcdef><function>putw</function></funcdef>
+  <paramdef>int <parameter>n</parameter></paramdef>
+  <paramdef>FILE *<parameter>fp</parameter></paramdef>
 </funcprototype>
 </funcsynopsis>
 
@@ -19,7 +33,21 @@
 
 <refsect1><title>Description</title>
 <para>
-Placeholder
+Putc add the character "ch" to the file "fp" at the current
+writing position and advances the position pointer.
+</para>
+<para>
+Putchar is implemented as a macro (defined in the header file)
+and is equivalent to "putc(ch,stdout)".
+</para>
+<para>
+Putw adds the (two byte) machine word "n" to the file "fp" in
+the manner of putc.
+</para>
+<para>
+Output via putc is normally buffered except;
+(a) when the buffering is disabled by "setbuf()", and
+(b) the standard error output is always unbuffered.
 </para>
 </refsect1>
 
@@ -33,7 +61,7 @@
 <refsect1><title>See Also</title>
 <para>
 <link linkend="fopen">fopen()</link>,
-<link linkend="fflush">fclose(), fflush()</link>,
+<link linkend="fclose">fclose(), fflush()</link>,
 <link linkend="getc">getc()</link>,
 <link linkend="puts">puts()</link>,
 <link linkend="printf">printf()</link>,
--- a/docs/ccguide/puts.refentry	Fri Nov 01 10:02:34 2002 +0000
+++ b/docs/ccguide/puts.refentry	Fri Nov 01 10:02:34 2002 +0000
@@ -1,7 +1,8 @@
 <refentry id="puts">
 <refnamediv>
-<refname>puts</refname>
-<refpurpose>Placeholder</refpurpose>
+<refname>Puts</refname>
+<refname>Fputs</refname>
+<refpurpose>put a string on a file</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
--- a/docs/ccguide/qsort.refentry	Fri Nov 01 10:02:34 2002 +0000
+++ b/docs/ccguide/qsort.refentry	Fri Nov 01 10:02:34 2002 +0000
@@ -1,7 +1,7 @@
 <refentry id="qsort">
 <refnamediv>
-<refname>qsort</refname>
-<refpurpose>Placeholder</refpurpose>
+<refname>Qsort</refname>
+<refpurpose>quick sort</refpurpose>
 </refnamediv>
 
 <refsynopsisdiv>
@@ -11,7 +11,7 @@
   <paramdef>char *<parameter>base</parameter></paramdef>
   <paramdef>int <parameter>n</parameter></paramdef>
   <paramdef>int <parameter>size</parameter></paramdef>
-    <paramdef>int <parameter>(* compfunc)</parameter>
+  <paramdef>int <parameter>(* compfunc)</parameter>
       <funcparams>void *, void *</funcparams></paramdef>
 </funcprototype>
 </funcsynopsis>