An array is converted to a pointer to the type of the array; a function is converted to the appropriate pointer to function type.
将数组转换为指向数组类型的指针,将函数转换为指向函数类型的适当指针。
The reason C and C++ never adopted nested functions is because in order to make capture work, you need additional information, with the result that a pointer to function becomes more complex.
C和c++的原因从未采用嵌套函数是因为为了使捕获的工作,你需要额外的信息,其结果是一个指针函数变得更加复杂。
The constructor is used to form a delegate over a target object and a function pointer.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
It returns a pointer to the function, which can then be used like any other reference value.
它返回一个函数指针,可以像任何其他引用值一样使用它们。
Global variables are never allocated to registers. Global variables can be changed by assigning them indirectly using a pointer, or by a function call.
全局变量不会被分配在寄存器上,修改全局变量需要通过指针或者调用函数的方式间接进行。
The object pointer is passed as the first argument to the function.
其对象指针作为函数的第一个参数被传递。
During normal operation of a program, when a function is called, any arguments for the called function along with a pointer to the return location are placed onto the stack.
在程序的正常操作过程中,当调用一个函数时,被调用函数的所有参数以及返回位置的指针都放在栈中。
This function accepts a pointer to a user space buffer, a pointer to a kernel buffer, and a length defined in bytes.
该函数接受一个指向用户空间缓冲区的指针、一个指向内存缓冲区的指针、以及一个以字节定义的长度。
The code passes the target as the first argument and a pointer to the code function as the second. The syntax for this is.
这段代码将目标作为第一个参数,将一个代码函数的指针作为第二个参数进行传递。
This is done by entering just enough data to overwrite the arguments with dummy data and a new return pointer to a different function; the new function is now executed. 10
这是通过输入足够的数据来用伪数据覆盖参数,及输入到不同函数的新返回指针来实现的,现在就执行新的函数了。
You use the access_ok function to check the validity of the pointer in user space that you intend to access.
您可以使用 access_ok函数在您想要访问的用户空间检查指针的有效性。
You will pass two arguments to this function: the service name and the pointer to the ControlHandlerfunction.
你要将两个参数传递给此函数:服务名和指向ControlHandlerfunction的指针。
When we start talking to the library about something, we call a function called newsession that returns a void pointer (not an unusual way to organize things).
当我们开始与库交流时,我们调用一个名为 newsession 的函数,它会返回一个空指针(这是组织事情的惯用方法)。
You open the file by calling the in function of the DL_Dxf object and passing a pointer to a class that inherits from the DL_CreationAdapter abstract class.
通过调用 DL_Dxf对象的in函数并将指针传递给一个继承 DL_CreationAdapter抽象类来打开此文件。
However, the method copies a pointer to the selected function into a local variable, and then calls the function with the call method of the function object, rather than calling it directly.
但是,这个方法将所选函数的指针复制到一个局部变量中,然后用function对象的call方法调用这个函数。而不是直接调用它。
Listing 8 is slightly more complex than the previous example because of the sigset function, which assigns a function pointer to a signal handler.
由于使用了sigset函数(它向信号处理程序分配一个函数指针),清单8比前一个示例稍微复杂一点,。
The clear_user function is used to zero a block of memory in user space. This function takes a pointer in user space and a size to zero, which is defined in bytes.
clear_user函数被用于将用户空间的内存块清零。
This function returns a pointer to the value in the environment or NULL if there is no match.
这个函数会返回一个 指向环境中的值的指针,或者如果不匹配则返回 NULL。
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.
然后就可以使用这个返回的指针来配置这个虚拟文件的其他参数,例如在对该文件执行读操作时应该调用的函数。
This function gets a pointer to the mutex it is trying to lock.
这个函数会获得一个指向它正在尝试锁定的互斥的指针。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
In the processing function, you get a pointer to the YYLTYPE structure holding the location, and you can generate a nice error message.
在处理函数中,我们获得了一个指向保存了位置信息的YYLTYPE结构的指针,这样可以生成一条很好的错误消息。
If a function is executing, then the stack pointer is pointing to the top of the whole stack, which is also the top of that function's activation record.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
Returning a pointer to static data may cause a function to be non-reentrant.
返回指向静态数据的指针可能会导致函数不可重入。
Populate the function pointer structure before returning to DB2.
在返回DB2之前填充函数指针结构。
After the function has been completed, the return pointer is used to go back to the original location and the program can continue.
当完成该函数之后,使用返回指针回到原来的位置并继续程序。
Pointer to the mapped function entry point.
指向被映射函数入口点的指针。
Pointer to the mapped function entry point.
指向被映射函数入口点的指针。
应用推荐