Borland C++ reference

fputc

raw OCR

Puts a character on a stream.

Defined in header <stdio.h>

Syntax

#include <stdio.h>
int fputc(int c, FILE *stream);

Portability

DOSUNIXWindowsANSI CC++ only
■■■■

Remarks

fputc outputs character c to the named stream.

Return value

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

See also

Example

#include <stdio.h>

int main(void)
{
   char msg[] =  "Hello world";
   int i = 0;
   while (msg[i])  (
      fputc (msg[i], stdout);
      i++;
   }
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.