XINU
|
文字をデバイス(ファイル)に書き込む。 More...
Go to the source code of this file.
Macros | |
#define | EOF (-2) |
End Of Fileを示す値 More... | |
#define | SYSERR (-1) |
システムエラーを示す値 More... | |
Functions | |
int | fputc (int c, int dev) |
文字をデバイス(ファイル)に書き込む。 More... | |
int | putc (int, char) |
文字を書き込むputc()のextern宣言 More... | |
文字をデバイス(ファイル)に書き込む。
Definition in file fputc.c.
int fputc | ( | int | c, |
int | dev | ||
) |
int putc | ( | did32 | descrp, |
char | ch | ||
) |
文字を書き込むputc()のextern宣言
文字を書き込むputc()のextern宣言
Step1. 割り込みを禁止する。
Step2. デバイスディスクリプタが不正値の場合は、割り込み状態を復元し、処理を終了する。
Step3. デバイスに応じたputc()処理を行う。
Step4. 割り込み状態を復元する。
[in] | descrp | デバイスディスクリプタ |
[in] | ch | 送信したい文字 |
Definition at line 18 of file putc.c.
Referenced by fputc().