This wiki is out of date, use the continuation of this wiki instead

Void

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:01, 29 April 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Current revision (01:16, 13 May 2007) (edit) (undo)
Sandman (Talk | contribs)
m
 
(One intermediate revision not shown.)
Line 1: Line 1:
 +[[Category:language]]
 +[[Category:datatypes]]
 +
== Definition == == Definition ==
'''VOID''' '''VOID'''
-[[Fenix]] doesn't have '''void'''s as such.But when we look at for example the [[function]] [[free]](), we see that you can pass it a '''void pointer'''. This means, that you can pass it a pointer of whatever type you want; an '''int pointer''', '''word pointer''' or even a '''pointer pointer'''. So in this case, '''void''' means "undefined".+[[Fenix]] doesn't have '''void'''s as such. But when we look at for example the [[function]] [[free]](), we see that you can pass it a '''void pointer'''. This means, that you can pass it a pointer of whatever type you want; an '''int pointer''', '''word pointer''' or even a '''pointer pointer'''. So in this case, '''void''' means "undefined".
There is another case in which '''void'''s can occur. This is when a function returns nothing, but this never happens in Fenix. There is another case in which '''void'''s can occur. This is when a function returns nothing, but this never happens in Fenix.
- 
-[[Category:datatypes]] 

Current revision


[edit] Definition

VOID

Fenix doesn't have voids as such. But when we look at for example the function free(), we see that you can pass it a void pointer. This means, that you can pass it a pointer of whatever type you want; an int pointer, word pointer or even a pointer pointer. So in this case, void means "undefined".

There is another case in which voids can occur. This is when a function returns nothing, but this never happens in Fenix.

Personal tools