ListCreate
ListType ListCreate (size_t itemSize);
Purpose
This function creates a list that holds items of the specified size.
Parameters
Input | ||
Name | Type | Description |
itemSize | size_t | Pass the size in bytes of the items that the list will hold. For example, to create a list of doubles:
#include "toolbox.h"
double value1 = 5.0; { } The size of every item in the list must be the same. If you want to have a list of items that can be different sizes, make a list of pointers to the items instead. For example, to make a list of strings:
#include "toolbox.h"
char *dog = "dog"; { } |
Return Value
Name | Type | Description |
newList | ListType | Returns a new empty list. If there is not enough memory, zero (0) is returned. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later