[問題] stdio問題
呼叫stdio.h
stdio.h裡有
extern char _getkey (void);
extern char getchar (void);
extern char ungetchar (char);
extern char putchar (char);
extern int printf (const char *, ...);
extern int sprintf (char *, const char *, ...);
extern int vprintf (const char *, char *);
extern int vsprintf (char *, const char *, char *);
extern char *gets (char *, int n);
extern int scanf (const char *, ...);
extern int sscanf (char *, const char *, ...);
extern int puts (const char *);
是不是這些都可以直接使用呢?
需要另外定義TBUF,RBUF陣列來放SBUF資料嗎?
如:http://www.keil.com/download/files/intsio2.zip
我看有些demo都另外寫getkey,putchar
這是為什麼呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.194.110
※ 編輯: BlueFeel 來自: 123.195.194.110 (03/11 20:27)
→
03/12 00:15, , 1F
03/12 00:15, 1F
→
03/12 16:38, , 2F
03/12 16:38, 2F
推
03/12 18:40, , 3F
03/12 18:40, 3F
→
03/12 18:41, , 4F
03/12 18:41, 4F
→
03/13 18:10, , 5F
03/13 18:10, 5F
→
03/13 18:11, , 6F
03/13 18:11, 6F
→
03/13 18:12, , 7F
03/13 18:12, 7F
ASM 近期熱門文章
PTT數位生活區 即時熱門文章