sds_retlist

sds_retlist

int sds_retlist (const struct sds_resbuf *list);


Return this list to LISP.


This function returns a list to LISP.

The argument list is a pointer to the first structure in a linked list that is to be returned to LISP as a list. The list can be of any length but must contain only these result codes: RT3DPOINT, RTANG, RTDOTE., RTENAME, RTLB, RTLE, RTNIL, RTORINT, RTPICKS, RTPOINT, RTREAL, RTSHORT, RTSTR, and RTT.

This function returns RTNORM (when it is successful) or returns RTERROR (when there is an error is list argument).

Example

struct sds_resbuf *listbuf;

listbuf=sds_buildlist(RTREAL,3.57,RTSHORT,12,RTSTR,_T("Test String"),RTNONE);

sds_printf(_T("\nsds_retlist returns: "));

sds_retlist(listbuf);

sds_relrb(listbuf); //Release memory

// LISP receives: (3.57 12 "Test String")

Tell me about...

Programming Overview of SDS (Solutions Development System)

sds_buildlist