gets






____________________________________________________________

gets − å¾ä¸åééè®ä¸è¡

gets channelId ?varName?
____________________________________________________________




     éåå½ä»¤å¾ channelId è®ä¸ä¸è¡ï¼è¿åç´å°(ä½ä¸åæ¬)è¡çµæå‐
符çè¡ä¸ææå符ï¼ä¸¦ææ£è¡çµæå符ãå¦æçç¥äº
varNameï¼æéä¸è¡ä½ç²å½ä»¤ççµæè¿åãå¦ææå®äº varName
ï¼åæéä¸è¡æ¾ç½®å°å«éåååçè®éä¸èè¿åå¼æ¯è¿åçå符總æ¸ã

     å¦æå¨æª¢ç´¢è¡çµæçæåéå°äºæ件çµæï¼å½ä»¤è¿åç´å°æ件çµæå¯ç²å¾çææ輸å¥ãå¦æ
channelIdå¨éé»å¡æ¨¡å¼ä¸ä¸¦ä¸ä¸è½ç²å¾å®æ´çä¸è¡ç輸å¥ï¼å½ä»¤è¿åä¸å空串並ä¸æ¶èä»»ä½è¼¸å¥ãå ç²æ件çµææå ç²å¨éé»å¡æ¨¡å¼ä¸æ¸æä¸å足ï¼å¦ææå®äº
varName 並åè¿åäºä¸å空串ï¼åè¿åç總æ¸æ¯ ‐1ã注æå¦ææªæå®
varName
åå¨æ件çµæåæ²æå¯ç²å¾çå®æ´çä¸è¡çææ³ä¸ç¢çççµæè輸å¥è¡åªç±ä¸åè¡çµæå‐
符çµæå樣ã使ç¨eof å fblockedå½ä»¤ä¾åå¥éä¸ç¨®ææ³ã


file(n), eof(n), fblocked(n)


blocking, channel, end of file, end of line, line,
nonblocking, read


å¯è¬é士

2001/09/02

http://cmpp.linuxforum.net


æ¬é é¢ä¸æçç±ä¸æ man æåé è¨åæä¾ã
ä¸æ man æåé è¨åï¼https://github.com/man‐pages‐zh/manpages‐zh