ERIS CORE

◆ setPath()

void FLASHMEM ControlButton::setPath ( const char *  path)
inline

Definition at line 57 of file ControlButton.h.

57  {
58  if (strlen(path) < MAX_TEXT_LENGTH - 1){strcpy(img_path,path);
59  } else safer_strncpy(img_path,path,MAX_TEXT_LENGTH - 1);
60  };
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
char img_path[MAX_TEXT_LENGTH]
Definition: ControlButton.h:66

References img_path, and safer_strncpy().

Referenced by setImage().

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