concatname(3) - Linux man page

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), and then the string t at the end of string s. This is not like a strcat(3) 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).

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), mbk_separ(1).

Referenced By

flattenlofig(3), flattenphfig(3), mbkenv(3), rflattenlofig(3), rflattenphfig(3)