ERIS CORE

◆ setText()

void ControlSlider::setText ( const char *  name_string)
inline

Definition at line 30 of file ControlSlider.h.

30  {
31  if (strlen(name_string) < MAX_TEXT_LENGTH - 1){strcpy(text,name_string);
32  } else safer_strncpy(text,name_string,MAX_TEXT_LENGTH - 1);
33  }
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
char text[MAX_TEXT_LENGTH]
Definition: ControlSlider.h:36

References safer_strncpy(), and text.

Referenced by AppAudioToPolyphonic::initialize().

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