XLISP strcat

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference

# strcat

Type: | - | function (subr)
Source: | - | xlstr.c

## Syntax

(strcat [string1 ... ])
  stringN - a string expression
  returns - the result of concatenating the strings

## Description

The 'strcat' function returns the concatenation of a sequence of string expressions. If there are no strings, an empty string is returned.

## Examples

    (strcat)                     ; returns ""
    (strcat "a")                 ; returns "a"
    (strcat "a" "b")             ; returns "ab"
    (strcat "ab" "cd" "ef")      ; returns "abcdef"
    (strcat "f" "ire tr" "uck")  ; returns "fire truck"
    (strcat 1 2)                 ; error: bad argument type

See the strcat function in the XLISP 2.0 manual.

Back to Top

Nyquist / XLISP 2.0 - Contents | Tutorials | Examples | Reference