ERIS CORE

◆ setName()

void AppBaseClass::setName ( const char *  name_string)
inlineinherited

Set the app class instance name (string)

Parameters
name_string

Definition at line 104 of file AppBaseClass.h.

104  {
105  if (strlen(name_string) < MAX_NAME_LENGTH - 1){strcpy(name,name_string);
106  } else safer_strncpy(name,name_string,MAX_NAME_LENGTH - 1);
107  }
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
char name[MAX_NAME_LENGTH]
Definition: AppBaseClass.h:74

References AppBaseClass::name, and safer_strncpy().

Referenced by AppAudioToPolyphonic::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: