fgets中文,fgets的意思,fgets翻译及用法

2025-09-07 04:06 浏览次数 7

fgets

英[fd'ʒets]美[fd'ʒets]

n. C语言中从文件中获取字符串函数

fgets 例句

英汉例句

  • Repeat the loop until fgets returns NULL.

    重复该循环直至fgets返回NULL。

  • While the split command drops the newlines, the newlines are still attached to the strings in the array when using the file command (as with the fgets command).

    虽然split命令将删除新行,但是当使用file命令(与fgets命令一样)时,新行仍将被附加到数组中的字符串上。

  • Note: fgets reads at most BUFSIZ - 1 chars from fin and stores them in the char string line.

    注:fgets最多从fin读取BUFSIZ-1个字符并将它们存储在字符串行。

  • The gets function reads from standard input, whereas fgets reads from the specified stream.

    gets函数从标準输入读取,fgets从指定的流读取。

  • It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.

    文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。

  • If the page type is fixed-lines-per-page, we read input line by line using the fgets library function.

    若页类型是每页行数固定的,则使用fgets库函数逐行读取输入。

  • (As we've seen above, fgets returns NULL while getc returns EOF.)

    正如我们在上面看到的,fgets返回NULL而getc返回e OF。

  • The fgets function is your weapon of choice for this first example.

    fgets函数是处理第一个示例的首选武器。

相关热词