The program in Figure 8-5 calls prdesc() to display the text that the SELECT statement returned. For a description of the prdesc() function, see "Guide to the prdesc.c File". If this program were to select a second simple large object, it would need to set the loc_mflags to the LOC_ALLOC constant before the second SELECT statement to prevent memory leaks.
The program in Figure 8-5 displays the cat_descr column for a catalog number that the user enters. Figure 8-6 shows the user input and the output that results from the cat_descr column of the stores7 database.
Figure 8-8 shows a code excerpt that illustrates how the updcd_me program uses the locator structure to update the cat_descr column from the text that is stored in memory.