---
name: "globus_rsl_value_unparse"
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_print"
---

# globus\_rsl\_value\_unparse(3)

RSL Display - RSL Display.

Part of [globus\_rsl\_print(3)](/globus_rsl_print/3.md).

## NAME

globus\_rsl\_print - RSL Display

 \- RSL Display.

## SYNOPSIS

### Functions

int **globus\_rsl\_value\_print\_recursive** (globus\_rsl\_value\_t \*globus\_rsl\_value\_ptr)\
 Print the value of a globus\_rsl\_value\_t to standard output.  char \* **globus\_rsl\_get\_operator** (int my\_op)\
 Get the string representation of an RSL operator.  int **globus\_rsl\_print\_recursive** (globus\_rsl\_t \*ast\_node)\
 Print the value of an RSL syntax tree to standard output.  char \* **globus\_rsl\_unparse** (globus\_rsl\_t \*rsl\_spec)\
 Convert an RSL parse tree to a string.  char \* **globus\_rsl\_value\_unparse** (globus\_rsl\_value\_t \*rsl\_value)\
 Convert an RSL value pointer to a string.

## Detailed Description

RSL Display.

## Function Documentation

### char \* globus\_rsl\_get\_operator (int my\_op)

Get the string representation of an RSL operator. The **globus\_rsl\_get\_operator()** function returns a pointer to a static string that represents the RSL operator passed in via the *my\_op* parameter. If the operator is not value, then **globus\_rsl\_get\_operator()** returns a pointer to the string '??'

**Parameters**

*my\_op* The RSL operator to return.

**Returns**

The **globus\_rsl\_get\_operator()** function returns a pointer to the string representation of the *my\_op* parameter, or '??' if that value is not a value RSL operator.

### int globus\_rsl\_print\_recursive (globus\_rsl\_t \* ast\_node)

Print the value of an RSL syntax tree to standard output. The **globus\_rsl\_print\_recursive()** function prints a string representation of the RSL syntax tree pointed to by the *ast\_node* parameter to standard output. This function is not reentrant.

**Parameters**

*ast\_node* A pointer to the RSL syntax tree to display.

**Returns**

The **globus\_rsl\_print\_recursive()** function always returns *GLOBUS\_SUCCESS*.

### char \* globus\_rsl\_unparse (globus\_rsl\_t \* rsl\_spec)

Convert an RSL parse tree to a string. The **globus\_rsl\_unparse()** function returns a new string which can be parsed into the RSL syntax tree passed as the *rsl\_spec* parameter. The caller is responsible for freeing this string.

**Parameters**

*rsl\_spec* A pointer to the RSL syntax tree to unparse.

**Returns**

Upon success, the **globus\_rsl\_unparse()** function returns a new string which represents the RSL parse tree passed as the *rsl\_spec* parameter. If an error occurs, **globus\_rsl\_unparse()** returns NULL.

### int globus\_rsl\_value\_print\_recursive (globus\_rsl\_value\_t \* globus\_rsl\_value\_ptr)

Print the value of a globus\_rsl\_value\_t to standard output. The **globus\_rsl\_value\_print\_recursive()** function prints a string representation of the RSL value node pointed to by the *globus\_rsl\_value\_ptr* parameter to standard output. This function is not reentrant.

**Parameters**

*globus\_rsl\_value\_ptr* A pointer to the RSL value to display.

**Returns**

The **globus\_rsl\_value\_print\_recursive()** function always returns *GLOBUS\_SUCCESS*.

### char \* globus\_rsl\_value\_unparse (globus\_rsl\_value\_t \* rsl\_value)

Convert an RSL value pointer to a string. The **globus\_rsl\_value\_unparse()** function returns a new string which can be parsed into the value of an RSL relation that has the same syntactic meaning as the *rsl\_value* parameter. The caller is responsible for freeing this string.

**Parameters**

*rsl\_value* A pointer to the RSL value node to unparse.

**Returns**

Upon success, the **globus\_rsl\_value\_unparse()** function returns a new string which represents the RSL value ndoe passed as the *rsl\_value* parameter. If an error occurs, **globus\_rsl\_value\_unparse()** returns NULL.

## Author

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