fputc, fputs, putc, putchar, puts - output of characters and strings


   #include <stdio.h>

   int fputc(int c, FILE *stream);

   int fputs(const char *s, FILE *stream);

   int putc(int c, FILE *stream);

   int putchar(int c);

   int puts(const char *s);


   fputc() writes the character c, cast to an unsigned char, to stream.

   fputs()  writes  the  string  s to stream, without its terminating null
   byte ('\0').

   putc() is equivalent to fputc() except that it may be implemented as  a
   macro which evaluates stream more than once.

   putchar(c) is equivalent to putc(c, stdout).

   puts() writes the string s and a trailing newline to stdout.

   Calls  to the functions described here can be mixed with each other and
   with calls to other output functions from the  stdio  library  for  the
   same output stream.

   For nonlocking counterparts, see unlocked_stdio(3).


   fputc(),  putc()  and  putchar()  return  the  character  written as an
   unsigned char cast to an int or EOF on error.

   puts() and fputs() return a nonnegative number on success,  or  EOF  on


   For   an   explanation   of   the  terms  used  in  this  section,  see

   │InterfaceAttributeValue   │
   │fputc(), fputs(), putc(), │ Thread safety │ MT-Safe │
   │putchar(), puts()         │               │         │


   POSIX.1-2001, POSIX.1-2008, C89, C99.


   It  is  not  advisable  to mix calls to output functions from the stdio
   library with low-level  calls  to  write(2)  for  the  file  descriptor
   associated  with  the same output stream; the results will be undefined
   and very probably not what you want.


   write(2),  ferror(3),   fgets(3),   fopen(3),   fputwc(3),   fputws(3),
   fseek(3), fwrite(3), putwchar(3), scanf(3), unlocked_stdio(3)


   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at

More Linux Commands

editdiff(1) - fix offsets and counts of a hand-edited diff
editdiff.1 - You can use rediff to correct a hand-edited unified diff. Take a copy of the diff you want to edit, and edit it without changing any offsets or cou

Tcl_SetChannelErrorInterp(3) - functions to create/intercept
The current definition of a Tcl channel driver does not permit the direct return of arbitrary error messages, except for the setting and retrieval of channel op

XpGetAttributes(3x) - Gets an attribute pool from the specif
XpGetAttributes returns a pool, a COMPOUND_TEXT resource string representing the attribute pool specified by type. The caller is expected to free pool when it i

pthread_equal(3) - compare thread IDs - Linux manual page...
The pthread_equal() function compares two thread identifiers. RETURN VALUE If the two thread IDs are equal, pthread_equal() returns a nonzero value; otherwise,

git-pack-redundant(1) - Find redundant pack files (ManPage)
This program computes which packs in your repository are redundant. The output is suitable for piping to xargs rm if you are in the root of the repository. git

peekfd(1) - peek at file descriptors of running processes...
peekfd attaches to a running process and intercepts all reads and writes to file descriptors. You can specify the desired file descriptor numbers or dump all of

Mail::SpamAssassin::AICache(3pm) - provide access to cached
This module allows ArchiveIterator to use cached atime information instead of having to read every message separately. PUBLIC METHODS new() Generates a new cach

confstr(3) - get configuration dependent string variables...
confstr() gets the value of configuration-dependent string variables. The name argument is the system variable to be queried. The following variables are suppor

perlirix(1) - Perl version 5 on Irix systems (Man Page).....
This document describes various features of Irix that will affect how Perl version 5 (hereafter just Perl) is compiled and/or runs. Building 32-bit Perl in Irix

cpp(1) - The C Preprocessor (Commands - Linux man page).....
The C preprocessor, often known as cpp, is a macro processor that is used automatically by the C compiler to transform your program before compilation. It is ca

XtVaGetSubvalues(3) - obtain and set widget resources.......
The XtSetValues function starts with the resources specified for the Core widget fields and proceeds down the subclass chain to the widget. At each stage, it wr

XkbListComponents(3) - List of components for one or more co
You may ask the server for a list of components for one or more component types. The request takes the form of a set of patterns, one pattern for each of the co

We can't live, work or learn in freedom unless the software we use is free.