SilverScreen Solid Modeler

get_generic

get_generic

Previous topic Next topic  

get_generic

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

int get_generic ( int i, char *buf )

 

int   i;          // generic element number

char *buf;        // character buffer to receive generic data

 

 




Synopsis

#include "silver.h"

 

The get_generic function returns the i-th element of the list created by the last use of collect_generic .

 

 

Parameters

i is an integer greater than 0. buf is the address of a character buffer that is to receive the value of the generic data.

 

 

Return Value

get_generic copies the associated generic data item into buf if the list contains at least i items, and returns 1; otherwise, get_generic returns 0.

 

 

See Also

collect_generic, pm_generic, prompt_generic, Generic data sets