The read function is unaware of file system types, such as ext3 or NFS.
read函数不了解文件系统的类型,比如ext3或 NFS。
Take, for example, the read function call, which allows some number of bytes to be read from a given file descriptor.
例如,read函数调用可以从指定的文件描述符读取一定数量的字节。
The read function returns the number of bytes read (up to the maximum that you specify), -1 on error, or zero if the end of the file has been reached.
read函数返回读取的字节数(最高为您指定的最大值);或者 -1,表示错误;或者0,如果已经到达文件末尾。
The fread function serves a slightly different purpose from fgets: It is intended to read from binary files (that is, files that don't consist primarily of human-readable text).
fread函数与fgets的处理目标略有不同:它趋于从二进制文件(即,并非主要包含人类可阅读的文本的文件)中读取信息。
You can then use the return pointer to configure other aspects of the virtual file, such as the function to call when a read is performed on the file.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
Encapsulating this code into a function makes it easier to understand and reuse, and also makes the script easier to read.
将这些代码封装到一个函数中,便于理解和重用,并且使脚本更加易于阅读。
The callback function can read the records that were saved in named memory (7) and write each record to a file (8).
回调函数可以读取保存在已命名内存中的记录(7)并将每条记录写入一个文件(8)。
Each time a corresponding client socket contains any read, write or error operations, the corresponding callback function is called.
每当对应的客户端套接字包含读、写或错误操作时,调用对应的回调函数。
Each channel has a predefined function and is either a read channel or a write channel.
每个通道都是一个预定义的函数,它可能是一个读通道,也可能是一个写通道。
This function would read the XML documents from a file and return the contents as structured data output.
该函数将从一个文件中读取XML文档,然后以结构化数据输出的形式返回内容。
I frequently read or hear people say something along the lines of "this or that is not properly object oriented", or "... function oriented ", or something else similar to that.
我经常会读到或听到有人说一些“这个和那个不是正确的面向对象”,或“…面向函数”,或诸如此类的言论。
You might want to analyze the last 100 items a user has read to pull out trends or enable complete search and this function may therefore be useful.
如果想通过用户最近阅读的100篇文章分析其趋势或者实现对它们的查询,那么这个功能就很有用了。
The type of database access, such as read or write, will be determined based on the nature of the bank teller function.
数据库访问的类型(比如读或写)将根据银行出纳功能的性质决定。
If you can't read Japanese this can often be the most entertaining part of the lavatory experience, with each button press leading to some new, unknown function of the lavatory.
如果你不认识日语,那么这个面板就是你如厕体验中最有意思的部分——每按一个按钮,就能看到一个洗手间的新功能。
This is should not be read as a flat assessment of quality, but as a critique of the function of the market.
当然这不能被我们解读成是因为他们的知识技能质量过于平平所以才没有做到这一点;而应该被看作是对市场功能的批判。
The logic used for form-feed-delimited pages is roughly the same, but slightly simpler, as there is no need for a line counter: Read char by char using the getc library function.
用于换页定界的页的逻辑大体上相同,只是稍稍简单一些,因为不需要行计数器:使用getc库函数逐个读取字符。
In a similar fashion, you can read data segments off segment by segment from an abstract buffer with the following function.
采用类似的方式,您可以使用以下函数,逐段地从抽象缓冲区读取数据段。
Quiesced exclusive 0x4 a table space is in this state when the application that invokes the table space quiesce function has exclusive (read or write) access to the table space.
Quiesced Exclusive0x4当调用表空间静默(quiesce)功能的应用程序独占(读或写)访问表空间时,该表空间就处于这种状态。
For any of these methods, you go through the standard process of using fopen to open the file, a function to read the data, then fclose to close the file, as shown in Listing 1.
对于这些方法中的任何一种,通过使用fopen(用于读取数据的函数)的标准方法打开文件,然后使用fclose关闭文件,如清单1所示。
This Kindle 2 has generated some controversy with its experimental read to me function that transforms any book into an audio book.
Kindle2实验性的“机读我听”的功能——就是能把任何书籍转换成有声书的功能,引起了一些争议。
The pc_ssheet script generates this report, which can be read into a spreadsheet program for further analysis of, for example, each function.
pc_ssheet脚本生成这个报告,它可以为进一步分析而读成一个spreadsheet项目,例如,每一个函数。
For this example, you create a count function to read the entire file into one big string, and then count the total number of characters and the number of newline characters.
对于本例来说,创建count函数来将整个文件读取到一个大字符串中,然后计算参数数量及新添参数数量。
And then invoke this function in a manner that is easy to read and to expand.
然后,以易读和易扩展的方式调用此函数。
If the read half of the connection needs to be shutdown, the soshutdown function calls sorflush .
如果需要关闭连接的读取部分,则soshutdown函数调用sorflush 。
If the page type is fixed-lines-per-page, we read input line by line using the fgets library function.
若页类型是每页行数固定的,则使用fgets库函数逐行读取输入。
As you know, the transformation input to XSLT must be an XML document, and XSLT can read additional XML documents through the document function.
我们知道,XSLT的转换输入必须是XML文档,XSLT可以通过document函数读入其他XML文档。
You can read data from a /proc entry (from the kernel to the user) by using the read_proc function. This function has the following prototype
我们可以使用 read_proc函数从一个 /proc项中读取数据(从内核空间到用户空间)。
Finally, the function calls the URL using file_get_contents , which will read a URL like a file if the string provided begins with a supported protocol such as HTTP.
最后,函数使用file_get _ contents调用url,如果提供的字符串是以一个受支持的协议(比如HTTP)开头的话,它将像读取文件一样读取url。
The init() function will read all the files in the posts folder and format them as HTML using the Showdown JS library, which is a JavaScript port of the Markdown text-to-HTML conversion tool.
init函数将会读取posts文件夹里的所有文件并且使用ShowdownJS库将他们格式化为HTML文件。
The init() function will read all the files in the posts folder and format them as HTML using the Showdown JS library, which is a JavaScript port of the Markdown text-to-HTML conversion tool.
init函数将会读取posts文件夹里的所有文件并且使用ShowdownJS库将他们格式化为HTML文件。
应用推荐