In this code, you start by declaring a file pointer to standard input so that you can get interactive information from the keyboard during the spell-check process.
在这段代码中,您首先要为标准输入声明一个文件指针,以便您能够在拼写检查过程中从键盘获得交互式信息。
This pointer must be an absolute directory path, so you may need to tweak this value in your own code.
这个指针必须是一个绝对目录路径,因此您可能需要在自己的代码中调整该值。
The code in Listing 1 allocates two 512-byte blocks of memory, and then the pointer to the first block is set to the second block.
清单1中的代码将分配两个 512字节的内存块,然后指向第一个内存块的指针被设定为指向第二个内存块。
Furthermore, it says nothing about where in the code the null pointer was actually assigned.
此外,它并不指出在代码的何处这个空指针被赋值。
The code shown in Listing 1 shows both a memory leak and a dangling pointer.
显示在列表1中的代码展示了一个内存渗漏和一个不断摆动的指针。
All indirect function pointer calls in a key-aware kernel extension go through special kernel-resident glue code that performs the automatic AMR manipulations described above.
在可识别键的内核扩展中,所有间接的函数指针调用都将执行特殊的、常驻内核的粘合代码,该代码用于执行上述的自动amr操作。
On Solaris, this sample code allows you to get the stack pointer.
在Solaris,下面这段示例代码让您可以获取堆栈指针。
In Part 2, I'll show how to overwrite a function pointer and cover assembly components and some juicy shell, network, socket code samples.
在第2部分中,我将介绍如何重写函数指针并介绍组件组装和一些有趣的shell、网络、套接字代码示例。
So, the code loops back, points to the proper top pointer (which was changed because of Thread b), invokes CAS, and is done with pushing 20 into the stack.
因此,代码回到循环的开头,指向正确的top指针(线程b修改后的),调用CAS,把20压入堆栈后结束。
Listing 1. Code with memory leak and dangling pointer (mem_errors.c).
列表1 .带有一个内存渗漏和一个不断摆动的指针的代码(mem_errors. c)。
Listing 8 shows the code for filling in the score and pointer for an individual cell in the table.
清单8显示了向表格中的初始单元格填充值和指针的代码。
The code passes the target as the first argument and a pointer to the code function as the second. The syntax for this is.
这段代码将目标作为第一个参数,将一个代码函数的指针作为第二个参数进行传递。
Listing 8 lists the code that was modified in the source of the jfs_mount.c file to create a segmentation fault at line 109 by creating a null pointer exception.
清单8列出了jfs_mount . c文件的源代码中被修改过的代码,我们在代码中创建了一个空指针异常,从而使代码在第109行产生段错误。
The first word usually contains a pointer to the classblock. However, this header is not visible to Java code.
第一个字包含了一个指针指向类块。
It looks for cases where a code path will or could cause a null pointer exception, and it also looks for cases in which there is a redundant comparison to null.
它查找代码路径将会或者可能造成null指针异常的情况,它还查找对null的冗余比较的情况。
C + + code developed in Win32 systems is based on the ILP32 model, where int, long, and pointer types are 32 bits.
在Win32系统中开发的C++代码是基于ILP32模型的,在该模型中,int、long和指针类型都是32位的。
The code converts data into a pointer to GtkLabel.
代码把data转换成到GtkLabel的指针。
Listing 6 contains a code example of declaring a state information structure and then allocating storage for the stateInfo pointer based on the size of the structure.
清单6包含的代码示例展示了如何声明一个状态信息结构,然后根据该结构的大小向stateinfo指针分配存储空间。
After obtaining the pointer to the label, the code USES the g_assert macro to determine if the label is equal to NULL.
在得到标签的指针后,代码使用g_assert宏来确定标签是否等于NULL。
The only thing we have to do to free memory is to take the pointer we're given, back up sizeof (struct mem_control_block) bytes, and mark it as available. Here is the code for that.
为了释放内存,我们必须要做的惟一一件事情就是,获得我们给出的指针,回退size of (struct mem_control_block)个字节,并将其标记为可用的。
When legacy code is called, either directly by calling an exported function or indirectly by using a function pointer, the kernel must
在调用遗留代码的时候,可以通过调用导出的函数进行直接地调用,也可以通过使用函数指针进行间接地调用,但是内核必须完成以下工作
This code is included in the code which handles the click event for the Invoke Service button and its purpose is to avoid a null pointer exception when the web service is invoked with an empty string.
它的目的是避免使用空子符串调用Web服务而出现空指针异常。
Because null-pointer exceptions are more difficult to diagnose, this "fix" would actually decrease the quality of the code.
因为空指针异常更难诊断,这种“修正”实际上会降低代码的质量。
The code at BE allocates the memory from the heap for the Singleton object and stores a pointer to that memory in eax.
be处的代码为Singleton对象从堆中分配内存,并将一个指向该块内存的指针存储到eax中。
Additionally, any code that traverses our lists and forgets to check for the empty case will get a NoSuchElementException, as opposed to the much-less-helpful null-pointer exception.
另外,任何阻断我们的链表以及忽略检查空例的代码将返回一个NoSuchElementException,而不是那些没什么用的空指针异常。
If the function is virtual and the call is through a reference or pointer, then the compiler generates code to determine which version to run based on the dynamic type of the object.
如果函数是虚函数,并且调用是通过引用或者指针,编译器基于动态类型生成代码确定调用哪个版本。
Write code to change the value of a pointer. Write code to change the value to which the pointer points.
编写代码修改指针的值;然后再编写代码修改指针所指对象的值。
The current block is the code containing the current location, instruction pointer address.
当前块是包含当前位置(指令指针地址)的代码。
The current block is the code containing the current location, instruction pointer address.
当前块是包含当前位置(指令指针地址)的代码。
应用推荐