Listing 8 TSSETLST.H — Example of a typical function

assigning setup structure fields to an object_list
#ifndef TSSETLST_H
#define TSSETLST_H

#include "cwobj.h"

#define MAX_ITEMS 10
#define STR_DATA_LEN 40

typedef struct {
     path_str input_file_name;
     char str_data [STR_DATA_LEN + 1];
     DWORD rect_color;
     } setup_record;

void init_setup (setup_record *the_setup);

void setup_to_collection (setup_record *the_setup,
   object_list *the_collection);

#endif
/* End of File */