CollisionDetectionTest/EnemyBullets.c
/* Free the memory associated with a given EnemyBullet object */
Free the memory associated with a given EnemyBullet object
Free the memory associated with a given EnemyBullet object
void EnemyBullet_Free(EnemyBullet **enemyBulletPtr)
{
	if ((enemyBulletPtr == NULL) || (*enemyBulletPtr == NULL))
	{
		return;  
	}
	free(*enemyBulletPtr);
	*enemyBulletPtr = NULL;
}
void EnemyBullet_Free ( EnemyBullet * * enemyBulletPtr ) { if ( ( enemyBulletPtr == NULL ) || ( * enemyBulletPtr == NULL ) ) { return ; } free ( * enemyBulletPtr ) ; * enemyBulletPtr = NULL ; }
Free the memory associated with a given EnemyBullet object
Free the memory associated with a given EnemyBullet object
/* safety check on the parameters */ /* take no action if the parameters are invalid */ /* free the given item */ /* clear the provided pointer */