⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gets.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) gets.n 1.13 96/08/26 12:59:58'\" .so man.macros.TH gets n 7.5 Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEgets \- Read a line from a channel.SH SYNOPSIS\fBgets \fIchannelId\fR ?\fIvarName\fR?.BE.SH DESCRIPTION.PPThis command reads the next line from \fIchannelId\fR, returns everythingin the line up to (but not including) the end-of-line character(s), anddiscards the end-of-line character(s).If \fIvarName\fR is omitted the line is returned as the result of thecommand.If \fIvarName\fR is specified then the line is placed in the variable bythat name and the return value is a count of the number of charactersreturned..PPIf end of file occurs while scanning for an end ofline, the command returns whatever input is available up to the end of file.If \fIchannelId\fR is in nonblocking mode and there is not a fullline of input available, the command returns an empty string anddoes not consume any input.If \fIvarName\fR is specified and an empty string is returned in\fIvarName\fR because of end-of-file or because of insufficientdata in nonblocking mode, then the return count is -1.Note that if \fIvarName\fR is not specified then the end-of-fileand no-full-line-available cases canproduce the same results as if there were an input line consistingonly of the end-of-line character(s).The \fBeof\fR and \fBfblocked\fR commands can be used to distinguishthese three cases..SH "SEE ALSO"eof(n), fblocked(n).SH KEYWORDSblocking, channel, end of file, end of line, line, nonblocking, read

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -