Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 8

PtListReplaceItems()

Replace specific items in a list

Synopsis:

int PtListReplaceItems( PtWidget_t *widget,
                        const char **old_items,
                        const char **new_items,
                        int item_count );

Description:

This function searches the entire list for each item in old_items. Every occurrence of each item found is replaced with the corresponding new_item. This operation continues until item_count is reached.

Returns:

0
Success.
-1
A memory allocation error occurred, or the specified widget is not a PtList widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtList, PtListReplaceItemPos()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 95

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptlistreplaceitems.html on line 95