---
name: "concatname"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/concatname"
---

# concatname(3)

concatenate two names with user separator

## NAME

concatname - concatenate two names with user separator

## SYNOPSYS

```
#include "mut.h"
char ∗concatname(s, t)
char ∗s, ∗t;
```

## PARAMETERS

- *s*

  Pointer to a string

- *t*

  Pointer to a string

## DESCRIPTION

The **concatname** function adds the separator defined by [**MBK\_SEPAR**(1)](/MBK_SEPAR/1.md), and then the string *t* at the end of string *s*. This is not like a [**strcat**(3)](/strcat/3.md) of the standard library, because *s* is not beeing modified. The string returned has already been put in the names dictionary by a call to [**namealloc**(3)](/namealloc/3.md).

## RETURN VALUE

**concatname** returns a pointer to a string in the name hash table.

## EXAMPLE

```
#include "mut.h"
#include "mlo.h"
void flat_sig_alias(ptsig, insname)
losig_list ∗ptsig;
char ∗insname;
{
chain_list ∗pt;
	for (pt = ptsig->NAMECHAIN; pt; pt = pt->NEXT)
		pt->DATA = (void ∗)concatname(insname, (char ∗)pt->DATA);
}
```

## SEE ALSO

**mbk**(1), [**namealloc**(3)](/namealloc/3.md), [**MBK\_SEPAR**(1)](/MBK_SEPAR/1.md).
