View Single Post
Old 04-27-2010, 12:50 PM   #10 (permalink)
Registered User PurplePoot
The only way to be sure.
 
PurplePoot's Avatar
 
Join Date: Dec 2005
Posts: 11,287
PurplePoot has a brilliant future (1581)PurplePoot has a brilliant future (1581)PurplePoot has a brilliant future (1581)PurplePoot has a brilliant future (1581)PurplePoot has a brilliant future (1581)PurplePoot has a brilliant future (1581)
Former Staff Member: This user used to be on the Hive Workshop staff. Paired Mapping Contest #4 - Winner: Fallen Angel - Lucifer's Keep Map Development Mini-Contest #1 - Winner: Stand of the Elements 
Also, this is one of the reasons why pointers need to die forever and just making structs pass by reference would be much nicer from a design standpoint:

Code:
point3d *what(point2d *source) { //this is the same function as above, only much more awesome
    double *i = (double *)realloc(source,3*sizeof(double));
    *(i+2) = something;
    return (point3d *)i;
}
PurplePoot is offline