c_pg2struct - Convert a string from the product generation table to a standing order structure

SYNTAX

#include "products.h"

FUNCTION c_pg2struct (str, order)

    char *str;
    struct ORDER *order;	

PARAMETERS

str (char *, input)

A standing order string read from the product generation table in ADAPSTABLES.

order (struct ORDER *, output)

A standing order structure to be filled with the information stored in str.

DESCRIPTION

Given a string read from the product generation table, this function will extract the individual fields and store them in a standing order structure.

RETURN VALUE

c_pg2struct() returns

    E_SUCC --> Successful completion.
    E_FAIL --> Operation failed.