#include "products.h"
FUNCTION c_pgwrite (descript, orders_q)
struct DESCRIPT *descript; long orders_q;
A table description structure. This structure contains the standard ADAPS table description located at the beginning of the product generation table.
The queue of standing orders to be written to the table. The standing orders should be stored in the queue as strings, not structures.
Write the product generation table in ADAPSTABLES. The table must be locked using the c_lockfil() function to prevent another application from accessing or updating the table at the same time.
c_pgwrite() returns
E_SUCC --> Successful completion. E_FAIL --> Operation failed.