# MakeName

Creates a name string.

### Synopsis

`char* MakeName (char* outputNameBuf, int32 maxNameLen, char* baseNameString, int32 uniqueID)`

### Description

Creates a name string from the specified prefix and unique identifier. `MakeName()` is used in the DataStreamer to create names for threads and semaphores.

`MakeName()` does not check whether the name it creates is actually unique.

### Arguments

`outputNameBuf`
  Pointer assigned to the unique name.

`maxNameLen`
  Length of the unique name.

`baseNameString`
  Character string used as a prefix to the unique name.

`uniqueID`
  Unique number.

### Return Value

Value
  Error Condition

(Pointer to the name string)
  None

`NULL`
  Length of name exceeded maxNameLen

### Associated Files

MakeName.h

### See Also

`NewTextSubscriber`