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

   Interface                  Attribute      Value   
   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

Module::Build::Version(3pm) - DEPRECATED - Linux man page...
Module::Build now lists version as a configure_requires dependency and no longer installs a copy. Module::Build::Version.3pm ...(Library - Linux manual page)

XCloseDisplay(3) - connect or disconnect to X server........
The XOpenDisplay function returns a Display structure that serves as the connection to the X server and that contains all the information about that X server. X

top(1) - display Linux tasks (Commands - Linux man page)....
The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads curre

Ttk_GetBorderFromObj(3) - Tk themed geometry utilities......
The Ttk_Box structure represents a rectangular region of a window: typedef struct { int x; int y; int width; int height; } Ttk_Box; All coordinates are relative

desktop-file-edit(1) Installation and edition of desktop fil
The desktop-file-install program is a tool to install, and optionally edit, desktop files. The desktop-file-edit program is a tool to edit a desktop file. They

XtRegisterGrabAction(3) - register button and key grabs.....
XtRegisterGrabAction adds the specified action_proc to a list known to the translation manager. SEE ALSO X Toolkit Intrinsics - C Language Interface Xlib - C La

bridge(8) show manipulate bridge addresses and devices......
The set of possible actions depends on the object type. Add, delete and show (or list ) objects, but some objects do not allow all of these operations or h.....

Tcl_DontCallWhenDeleted(3) - Arrange for callback when inter
Tcl_CallWhenDeleted arranges for proc to be called by Tcl_DeleteInterp if/when interp is deleted at some future time. Proc will be invoked just before the inter

XSetStipple(3) - GC convenience routines - Linux man page...
The XSetTile function sets the fill tile in the specified GC. The tile and GC must have the same depth, or a BadMatch error results. XSetTile can generate BadAl

DES_FAILED(3) fast DES encryption - Linux manual page.......
ecb_crypt() and cbc_crypt() implement the NBS DES (Data Encryption Standard). These routines are faster and more general purpose than crypt(3). They also are ab

MaxCmapsOfScreen(3) - screen information functions and macro
The BlackPixelOfScreen macro returns the black pixel value of the specified screen. The WhitePixelOfScreen macro returns the white pixel value of the specified

polkitd(8) - PolicyKit daemon (Admin - Linux man page)......
polkitd provides the org.freedesktop.PolicyKit1 D-Bus service on the system message bus. Users or administrators should never need to start this daemon as it wi

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