Mercurial > hg > Members > kono > nitros9-code
view docs/ccguide/putc.refentry @ 2772:0a3f4d8ea6d5
Found ENDC in wrong location in dwread.asm and dwwrite.asm. Corrected.
Moved the native 6309 code in dwread.asm and dwwrite.asm into the H6309 labeled area and changed IFEQ H6309 to IFNE H6309. Also moved the 57600bps 6809 code to the default location. This change had been done in the old dwread.asm and dwwrite.asm files to make it easier to follow. Though these two files were overwritten from the HDBDOS project dwread.asm and dwwrite.asm files. So this conversion needed to be done again so it made the source easier to follow.
author | drencor-xeen |
---|---|
date | Wed, 23 Jan 2013 12:36:55 -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>