---
name: "globus_list_copy_reverse"
section: "3"
platform: "linux"
package: "libglobus-rsl-doc"
version: "11.4-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_rsl_list"
---

# globus\_list\_copy\_reverse(3)

List Functions - List Functions.

Part of [globus\_rsl\_list(3)](/globus_rsl_list/3.md).

## NAME

globus\_rsl\_list - List Functions

 \- List Functions.

## SYNOPSIS

### Functions

globus\_list\_t \* **globus\_list\_copy\_reverse** (globus\_list\_t \*orig)\
 Create a reverse-order copy of a list.

## Detailed Description

List Functions.

## Function Documentation

### globus\_list\_t \* globus\_list\_copy\_reverse (globus\_list\_t \* orig)

Create a reverse-order copy of a list. The **globus\_list\_copy\_reverse()** function creates and returns a copy of its input parameter, with the order of the list elements reversed. This copy is a shallow copy of list nodes, so both the list pointed to by *orig* and the returned list point to the same list element data.

**Parameters**

*orig* A pointer to the list to copy.

**Returns**

Upon success, **globus\_list\_copy\_reverse()** returns a new list containing the same elements as the list pointed to by *orig* in reverse order. If an error occurs, **globus\_list\_copy\_reverse()** returns NULL.

## Author

Generated automatically by Doxygen for globus\_rsl from the source code.
