---
name: "globus_libc.h"
section: "3"
platform: "linux"
package: "libglobus-common-doc"
version: "18.14-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/globus_libc.h"
---

# globus\_libc.h(3)

Thread-safe libc macros, function prototypes.

## NAME

globus\_libc.h - Thread-safe libc macros, function prototypes.

## SYNOPSIS

`#include 'globus_common_include.h'`\
 `#include 'globus_thread.h'`\

### Functions

char \* **globus\_libc\_join** (const char \*\*array, int count)\
 **globus\_result\_t** **globus\_libc\_contact\_string\_to\_ints** (const char \*contact\_string, int \*host, int \*count, unsigned short \*port)\

## Detailed Description

Thread-safe libc macros, function prototypes.

## Function Documentation

### globus\_result\_t globus\_libc\_contact\_string\_to\_ints (const char \* contact\_string, int \* host, int \* count, unsigned short \* port)

convert a numeric contact string to an array of ints

(port is optional and may be NULL. 0 will be passed back if no port is found) host needs to have room for at least 16 ints count will be passed back. 4 for ipv4, 16 for ipv6

### char \* globus\_libc\_join (const char \*\* array, int count)

create a new string from all of the strings in array

**Parameters**

*array* an array of strings to concatenate (null entries are skipped) \
 *count* length of array

## Author

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