OSDN Git Service

(none)
[hos/hos-v4a.git] / aplfw / driver / console / pcattext / pcattextdrv_write.c
1 /** 
2  * Hyper Operating System  Application Framework
3  *
4  * @file  pcattextdrv_write.c
5  * @brief %jp{PC/AT text mode driver 書込み}%en{PC/AT text mode driver  write}
6  *
7  * Copyright (C) 2008 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #include "pcattextdrv_local.h"
13
14
15 /** %jp{送信} */
16 FILE_SIZE PcatTextDrv_Write(C_DRVOBJ *pDrvObj, C_FILEOBJ *pFileObj, const void *pData, FILE_SIZE Size)
17 {
18         C_PCATTEXTDRV           *self;
19         const unsigned char     *pubBuf;
20         FILE_SIZE                       i;
21         
22         /* upper cast */
23         self = (C_PCATTEXTDRV *)pDrvObj;
24         
25         pubBuf = (const unsigned char *)pData;
26         
27         /* 出力 */
28         for ( i = 0; i < Size; i++ )
29         {
30                 PcatTextDrv_PutChar(self, pubBuf[i]);
31         }
32         
33         return i;
34 }
35
36
37 /* end of file */