Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Void pointer


Related Topics

In the News (Tue 2 Dec 08)

  
  Pointer - Wikipedia, the free encyclopedia
Pointers are so commonly used as references that sometimes people use the word "pointer" to refer to references in general; however, if you are seeking general information on a small piece of data used to find an object, see reference (computer science).
Pointer arithmetic is unrestricted; adding or subtracting from a pointer moves it by a multiple of the size of the datatype it points to.
Pointer arithmetic is unrestricted; adding or subtracting from a pointer moves it by that number of bytes in either direction, but using the Inc or Dec standard procedures on it moves it by the size of the datatype it is declared to point to.
en.wikipedia.org /wiki/Void_pointer   (2320 words)

  
 void(Visual C++ Programmer's Guide)   (Site not responding. Last check: 2007-10-14)
A void pointer cannot be dereferenced unless it is cast to another type.
A void pointer can be converted into any other type of data pointer.
A void pointer can point to a function, but not to a class member in C++.
msdn.microsoft.com /library/en-us/vccore98/html/_langref_void.asp   (190 words)

  
 DEC C
pointer is a pointer without a specified data type to describe the object to which it points.
pointer is often used in function calls, function arguments, or function prototypes when a parameter or return value is a pointer of an unknown type.
Remember that a pointer is large enough to hold only an address; a pointer into an array holds the address of an element of that array.
h30097.www3.hp.com /docs/base_doc/DOCUMENTATION/V50_HTML/ARH9NATE/DOCU_010.HTM   (2435 words)

  
 [No title]   (Site not responding. Last check: 2007-10-14)
HANDLE hmutex; char* name; unsigned int minimum_block_size; //When the number of pointers reach this size, another memory block //twice this size is created.
unsigned int block_size; //When the number of pointers exceed the current size, the block size is doubled.
pointer_array::allocate_dynamic_memory(); //allocates new block that is half the original size //copies pointers before the one that was removed.
www.uaf.edu /asgp/spbruss/asgp/tr1/pointer.h   (353 words)

  
 Help with STL allocators
pointer address (T& x) ^^^^^^^ Error 874: "/opt/aCC/include/memory", line 546 # A non-void type is required for specialization instead of 'void' since the template creates a reference to that type.
The particular error you were getting were because the compiler was trying to substitute void for T in your unspecialised template and coming up with code like this typedef void& reference; which is illegal because you cannot have a void reference.
The particular error you were getting were > because the compiler was trying to substitute void for T in your > unspecialised template and coming up with code like this > > typedef void& reference; > > which is illegal because you cannot have a void reference.
www.codecomments.com /message286244.html   (1010 words)

  
 The SNIPPETS C collection - file: DEQUE.C
A pointer to the object * is used so that not only can any data be used but various kinds * of data can be pushed on the same queue if one so wished e.g.
* various length string literals mixed with pointers to structures * or integers etc. * * Enhancements: * A future improvement would be the option of multiple "cursors" * so that multiple locations could occur in the one queue to allow * placemarkers and additional flexibility.
* ** parameters : queue pointer * ** returns : pointer to data element that was at tail.
c.snippets.org /snip_lister.php?fname=deque.c   (980 words)

  
 FramerD Kernel APIs
A vector is implemented as a record with the tag VECTOR_TAG and a pointer to an array of size and elements.
a pointer to a hashset and an int minsize
a pointer to a hashtable and an int minsize
framerd.media.mit.edu /documentation/framerd-capi.html   (6829 words)

  
 [XML-SIG] FW: pyexpat compilation errors - Python 2.0b1
-DHAVE_CONFIG_H -c./pyexpat.c cc: Warning:./pyexpat.c, line 987: In the initializer for handler_info[0].handl er, the referenced type of the pointer value "my_StartElementHandler" is "functi on (pointer to void, pointer to const char, pointer to pointer to const char) re turning void", which is not compatible with "void".
(ptrmismatch) my_UnparsedEntityDeclHandler }, --------^ cc: Warning:./pyexpat.c, line 1002: In the initializer for handler_info[5].hand ler, the referenced type of the pointer value "my_NotationDeclHandler" is "funct ion (pointer to void, pointer to const char, pointer to const char, pointer to c onst char, pointer to const char) returning void", which is not compatible with "void".
(pt rmismatch) my_NotStandaloneHandler}, --------^ cc: Warning:./pyexpat.c, line 1029: In the initializer for handler_info[14].han dler, the referenced type of the pointer value "my_ExternalEntityRefHandler" is "function (pointer to void, pointer to const char, pointer to const char, pointe r to const char, pointer to const char) returning int", which is not compatible with "void".
mail.python.org /pipermail/xml-sig/2000-July/002922.html   (761 words)

  
 Pointers in C
A pointer variable is a named memory location which value is assumed to be the address of some memory location, e.g.
The definition of a variable that is a pointer to a function exactly tells how a function must be prototyped to be allowed to give its address to the pointer.
Void pointers is necessary sometimes, but may also introduce tricky memory errors since using them don't take advantage of the type-checking provided by the compiler.
www.idt.mdh.se /~csg/cgui/fptr.html   (898 words)

  
 The Function Pointer Tutorials - Callbacks
Pointers to non-static members are different to ordinary C function pointers since they need the this-pointer of a class object to be passed.
Then you cast the pointer to the object on which you want to invoke the member function to void* and pass it to the wrapper as an additional argument or via a global variable.
Therefore a pointer to an object of class TClassA and a pointer to the static wrapper function TClassA::Wrapper_To_Call_Display are passed to DoItA.
www.newty.de /fpt/callback.html   (1419 words)

  
 dBforums - Deleting void*
New doesn't return a void pointer, it returns a pointer to the kind of memory you
Sorry, should be a pointer to the type of the object created.
You get a pointer to a raw, uninitialized block of memory that is 4096 bytes' size.
www.dbforums.com /t364766.html   (1433 words)

  
 Linked List Utility Functions
A pointer to the node after which the specified item is to be inserted.
A pointer to the node before which the specified item is to be inserted.
A pointer to the node that is to be removed.
www.obj-sys.com /v55doc/SRC/group__llfuns.shtml   (1564 words)

  
 [No title]
*/ void gaim_signal_unregister(void *instance, const char *signal); /** * Unregisters all signals in an instance.
*/ void gaim_signal_get_values(void *instance, const char *signal, GaimValue **ret_value, int *num_values, GaimValue ***values); /** * Connects a signal handler to a signal for a particular object.
*/ void *gaim_signal_emit_return_1(void *instance, const char *signal,...); /** * Emits a signal and returns the return value from the last handler.
cr.yp.to /2004-494/gaim/0.81-src/signals.h   (849 words)

  
 nntp.perl.org - perl.dbi.oracle-oci (38)   (Site not responding. Last check: 2007-10-14)
= (ptrmismatch)=0A= RETVAL =3D OCIInitialize(mode, ctxp, arg2, arg3, arg4);=0A= -------------------------------------------^=0A= cc: Warning: OCI.c, line 9190: In this statement, the referenced type = of the pointer value "arg3" is "void", which is not compatible with = "function (pointer to void, pointer to void, unsigned long) returning = pointer to void".
= (ptrmismatch)=0A= RETVAL =3D OCIInitialize(mode, ctxp, arg2, arg3, arg4);=0A= -------------------------------------------------------^=0A= cc: Warning: OCI.c, line 9916: In this statement, the referenced type = of the pointer value "arg8" is "void", which is not compatible with = "function (pointer to void, pointer to const void, unsigned int, = unsigned char) returning int".
(ptrmismatch)=0A= hook =3D (void*)((imp_sth_t*)imp_xxh)->get_oci_handle;=0A= --------^=0A= cc: Warning: utility.c, line 134: In this statement, the referenced = type of the pointer value "(void...)((imp_dbh_t =...)imp_xxh)->get_oci_handle" is "void", which is not compatible with = "function (pointer to struct imp_xxh_st, int, int) returning pointer to = void".
nntp.perl.org /group/perl.dbi.oracle-oci/38   (713 words)

  
 CFunctions.html
The pointer must be one that was returned by a prior call to an allocation function.
Returns a pointer to the function serving as the top-level error handler.
const void *pointer) pointer matches an item already in the table, the previous pointer is released using the release() call-back function that was specified when the table was created.
www.gnu.org /software/gnustep/resources/OpenStepSpec/FoundationKit/Functions/CFunctions.html   (3260 words)

  
 <memory>   (Site not responding. Last check: 2007-10-14)
Or it might allocate storage on a far heap, requiring nonstandard pointers to access the allocated objects.
Or it might specify, through the type definitions it supplies, that elements be accessed through special accessor objects that manage shared memory, or perform automatic garbage collection.
In general, however, an allocator object constructed from another allocator object should compare equal to it (and hence permit intermixing of object allocation and freeing between the two allocator objects).
www.dinkumware.com /htm_cpl/memory.html   (1360 words)

  
 Pointer to Void   (Site not responding. Last check: 2007-10-14)
When writing a function that is very generic in nature, and that accepts a pointer to an entity as an input parameter, you might not know at compile time, the type of the entity.
In this case you may use a "wildcard" pointer type.
This is expressed as a pointer to void.
www.kean.edu /~ayorinks/lectures/lect4/text7.htm   (73 words)

  
 class MdPtrArrayBase
The function pointer passed to this routine must have exactly one parameter, which is a pointer, and return a pointer, which will replace the old pointer in the array.
a pointer to pointer is set to the last element and is decremented until is reaches the first pointer of the array.
a pointer to the pointer is set to the last element and is decremented until a valid pointer is found (a valid pointer is not NULL).
www-nt.e-technik.uni-erlangen.de /~runze/Public/CppDoc/MdPtrArrayBase.68.html   (1593 words)

  
 [XML-SIG] PyXML 0.5.4 installation glitches
(ptrmismatch) my_EndElementHandler}, --------^ cc: Warning: extensions/pyexpat.c, line 827: In the initializer for handler_info [2].handler, the referenced type of the pointer value "my_ProcessingInstructionH andler" is "function (pointer to void, pointer to const char, pointer to const c har) returning void", which is not compatible with "void".
(ptrmismatch) my_UnparsedEntityDeclHandler }, --------^ cc: Warning: extensions/pyexpat.c, line 836: In the initializer for handler_info [5].handler, the referenced type of the pointer value "my_NotationDeclHandler" i s "function (pointer to void, pointer to const char, pointer to const char, poin ter to const char, pointer to const char) returning void", which is not compatib le with "void".
(ptrmismatch) my_NotStandaloneHandler}, --------^ cc: Warning: extensions/pyexpat.c, line 863: In the initializer for handler_info [14].handler, the referenced type of the pointer value "my_ExternalEntityRefHand ler" is "function (pointer to void, pointer to const char, pointer to const char, pointer to const char, pointer to const char) returning int", which is not com patible with "void".
mail.python.org /pipermail/xml-sig/2000-May/002299.html   (655 words)

  
 [No title]
The most +common approach is to store the mod pointer in some global variable in the +target language, but if the language provides an alternative place to store data +(like the chicken module), then that is good too.
The pointer is returned in +result, and the function should return 0 on success, non-zero on error.
If obj stores the void pointer and the type name, then +the TypeCheck function should be used, while if obj stores the void pointer and +a pointer to the swig_type_info structure, then the TypeCheckStruct function +should be called.
www.cs.wisc.edu /~lenz/swig/common-types.patch   (2534 words)

  
 How to Eliminate WILD Pointers   (Site not responding. Last check: 2007-10-14)
In C it is technically sufficient to leave the argument part of a function type empty, and this allows to call the function with whatever arguments you feel like.
But as we have already discussed in Section 9.4 this won't work in CCured because the pointers you get out are not usable.
Thus you cannot use it on pointers that are involved in pointer arithmetic.
manju.cs.berkeley.edu /ccured/ccured007.html   (3587 words)

  
 TClass
pointer to a function newing an array of objects.
If pointer is not 0, uses the object at pointer otherwise creates a temporary object of this class.
If this class is not a baseclass of cl return 0, else the pointer to the cl part of this (up) or to this (down).
root.cern.ch /root/html/TClass.html   (2137 words)

  
 delete a void pointer - GameDev.Net Discussion Forums   (Site not responding. Last check: 2007-10-14)
Posted - 6/5/2002 12:50:15 PM Deleting void pointers is isn't legal as far as I know.
Deleting void pointers is isn't legal as far as I know.
Using void* as a data type is generally unnecessary unless you're doing something unusual.
www.gamedev.net /community/forums/ViewReply.asp?id=513023   (644 words)

  
 Assignment of Void Pointer Does Not Give Warning Message (41374)   (Site not responding. Last check: 2007-10-14)
The ANSI standard is unclear about whether an assignment to a void pointer should be checked to see if it is being assigned a nonpointer variable.
The code below shows that character pointers are checked while void pointers are not; the code will generate the following warnings:
The compiler generates the following warning for the void pointer in the sample code as well as the character pointer:
www.it-faq.pl /mskb/41/374.HTM   (204 words)

  
 Linked List Utility Functions
A pointer to a pointer to a destination array.
A pointer to the number of elements already allocated in ppArray.
If not NULL, the pointer to the total number in the ppArray after the additional items were appended.
www.obj-sys.com /v56doc/COM/group__llfuns.shtml   (1575 words)

  
 void pointer
Andy's right that this is all standard C, but just start from the 0 (the only value in the statement) and look at the casts.
The value is cast to a pointer (in code memory, in this case) to a function returning void and taking no parameters (although the author put in an extra "void" for clarity).
The best way to reset will always be to turn on the watchdog and then just throw a while(1); in the code and wait for a proper reset.
www.keil.com /discuss/docs/thread5438.htm   (557 words)

  
 [No title]
Pointers to the coordinate arrays are specified using new vector versions of the Pointer functions.
Reasoning Alternative methods for specifying vertex data are provided for vertex, normal, color, and texture pointers.
Need to put in argument for why this is faster on some architectures (cache lines, etc).
oss.sgi.com /projects/ogl-sample/registry/INTEL/parallel_arrays.txt   (937 words)

  
 dBforums - const void *
What does the const modifier "buy you" in a void pointer, i.e., const void *p;
You can't dereference a void pointer and apparently you can cast it into a typed
void f(const void *p) { int *q = (int *)p; // const void * TO int * }
www.dbforums.com /t434194.html   (1236 words)

  
 PostgreSQL: mcxt.c File Reference
00276 * Presumably, a pointer that isn't MAXALIGNED isn't pointing at an 00277 * allocated chunk.
pointer != (void *) MAXALIGN(pointer)) 00355 return false; 00356 00357 /* 00358 * OK, it's probably safe to look at the chunk header.
Also check for a reasonable-looking size as 00366 * extra guard against being fooled by bogus pointers.
jonathangardner.net /PostgreSQL/doxygen/7.4/mcxt_8c.html   (1540 words)

  
 [No title]
If no width and height keyword arguments are supplied the View will shrink-wrap around the object.
{param parent} is the parent View or void.
It first searches for the key in the user portion of the registry, then the host machine portion of the registry.
cag.lcs.mit.edu /pub/curl/curl/boxes/view.curl   (1537 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.