string

Gamma: Version 4.0
Prev |  | Next

# `string`

`string` -- constructs a string.

## Syntax

    string (s_exp...)

## Arguments

`s_exp`

  Any Gamma or Lisp expression.

## Returns

A string which is the concatenation of all of the arguments.

## Description

This function constructs a string by concatenating the `princ` names of all of the arguments. Any argument that can be evaluated will be. No separation is provided between arguments in the resulting string.

## Example

        Gamma> string("A list: ",list(#a,#b,#c), " and a sum: ",2 + 3);
        "A list: (a b c) and a sum: 5"
        Gamma>

See the PID Controller Class section of the PID Emulator chapter, or the Start a Process section of the Common Functions for Any Program chapter (Tutorial Two), or the Common: The Text Message Display section of the Controller Functions chapter, or the GTK: Preparing Plots section of the Log Functions chapter in the Cogent Tools Demo and Tutorials book for examples of this function used in context.

## See Also

`format`

Prev | Home | Next
`strcmp`, `stricmp` | Up | `stringc`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.