Keil Logo


#include <stdio.h>

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

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


  • 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

#include <stdio.h>

void tst_putchar (void) {
  int i;

  for (i = 0x20; i < 0x7F; i++)
    putchar (i);
  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.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.