UFUN function UF_ATTR function (UF_ATTR_cycle)

. 1  UF_initialize ();
 2  
. 3      tag_t Object = 433.89 thousand ;
 . 4      int INDX = 0 ;
 . 5      int type = UF_ATTR_any;
 . 6      char title [UF_ATTR_MAX_TITLE_LEN + . 1 ] = "" ;
 . 7      UF_ATTR_value_t value;
 . 8      // property reads a program loop 
9      UF_ATTR_cycle ( Object , & INDX, type, title, & value);
 10      // print 
. 11      UF_UI_open_listing_window ();
 12 is      the while (INDX)
 13 is     {
14         UF_UI_write_listing_window(title);
15         UF_UI_write_listing_window("=");
16         UF_UI_write_listing_window(value.value.string);
17         UF_UI_write_listing_window("\n");
18         UF_ATTR_cycle(object,&indx,type,title,&value);
19     }
20     //释放内存
21     UF_free(value.value.string);
22 
23     UF_terminate();
24     /*
25         This function reads the title UF_ATTR_cycle can read both properties,
 26          it should be noted that the read-out header, the order of the front of the property values may be different with
 27      * /

Guess you like

Origin www.cnblogs.com/zzyfym/p/12038617.html