Borland C++ reference

fputchar

raw OCR

Outputs a character on stdout.

Defined in header <stdio.h>

Syntax

#include <stdio.h>
int fputchar(int c);

Portability

DOSUNIXWindowsANSI CC++ only
■■■

Remarks

fputchar outputs character c to stdout. fputchar(c) is the same as fputc(c, stdout).

Return value

On success, fputchar returns the character c. On error, it returns EOF.

See also

Example

include  <stdio.h>
int main (void)

   char msg[] =  "This is a test\n";
   int i = 0;
   while  {msg[i]) {
      fputchar (msg[i]);
      i++;
   }
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.