Keil Logo Arm Logo

CARM User's Guide

Discontinued

putchar

Summary
#include <stdio.h>

int putchar (
  int c);   /* character to output */
Description

The putchar function transmits the character c using the serial port.

Note

  • This routine is implementation-specific and its function may deviate from that described above. Source code is provide in the LIB folder. You may modify the source to customize this function for your particular hardware environment.
Return Value

The putchar routine returns the character output, c.

See Also

_getkey, getchar, ungetchar

Example
#include <stdio.h>

void tst_putchar (void) {
  int i;

  for (i = 0x20; i < 0x7F; i++)
    putchar (i);
}

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.