fastest 3D software for linux

Linux 3D
interactive ray-tracing
[Introduction] [Overview] [Coding Standards] [Core reference] [3D reference] [GUI]

Index

 ELst_StructInsert
 ELst_PointerRemoveA

ELst_StructInsert

Add one struct to a dynamically allocated array at a given position

Syntax
void* ELst_StructInsert(void* PListP, EIndex* PCountP, const ESize PStructSize, EIndex PWhere)

Arguments
PListP Pointer to the list PCountP Pointer to the count PStructSize Number of bytes per entry PWhere Insert before this index
Description
If PWhere is negative, or greater than the number of elements in the list, add the new struct after the last one. This is equivalent to calling ELst_StructAdd.

Return value
None.

ELst_PointerRemoveA

Remove a pointer from a dynamically allocated array

Syntax
EIndex ELst_PointerRemoveA(void* PListP, EIndex* PCountP, EIndex* PCountAllocatedP, const void* PThePtr)

Arguments
PListP Pointer to the list PCountP The number of pointers in use PCountAllocatedP The number of pointers allocated PThePtr The value to look for
Description
This function looks for PThePtr in the array PList. If it finds that, it removes it by possibly reallocating the memory for the array and updating PCountP and PCountAllocatedP. The number of pointers allocated might be different from the number of pointers in use.

Return value
Pointer to the new array and PCountP PCountAllocatedP
© 1996-2025 By Gabor Nagy