Mercurial > hg > Members > kono > nitros9-code
view docs/ccguide/putc.refentry @ 2798:b70d93f8d7ce lwtools-port
Updated coco1/modules/makefile and coco3/modules/makefile to help resolve issues with i(x) and s(x) descriptors.
Updated level1/coco1/modules/makefile & level2/coco3/modules/makefile
so that correct values would be sent to assembler when
building superdesc.asm for s(x).dd and i(x).dd descriptors.
author | drencor-xeen |
---|---|
date | Mon, 28 Jan 2013 16:13:05 -0600 |
parents | d9ab3688bb71 |
children |
line wrap: on
line source
<refentry id="putc"> <refnamediv> <refname>Putc</refname> <refname>Putchar</refname> <refname>Putw</refname> <refpurpose>put character or word in a file</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> #include <stdio.h> </funcsynopsisinfo> <funcprototype> <funcdef><function>putc</function></funcdef> <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> </refsynopsisdiv> <refsect1><title>Description</title> <para> 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> <refsect1><title>Diagnostics</title> <para> Putc and putchar return the character argument from a successful call, and EOF on end-of-file or error. </para> </refsect1> <refsect1><title>See Also</title> <para> <link linkend="fopen">fopen()</link>, <link linkend="fclose">fclose(), fflush()</link>, <link linkend="getc">getc()</link>, <link linkend="puts">puts()</link>, <link linkend="printf">printf()</link>, <link linkend="fread">fread()</link> </para> </refsect1> </refentry>