--------------------------------------------------------- */ ---------------- Functions: cmaes_t --------------------- */ --------------------------------------------------------- */
| 190 | /* ---------------- Functions: cmaes_t --------------------- */ |
| 191 | /* --------------------------------------------------------- */ |
| 192 | static char *getTimeStr(void) { |
| 193 | time_t tm = time(nullptr); |
| 194 | static char s[33]; |
| 195 | |
| 196 | /* get time */ |
| 197 | strncpy(s, ctime(&tm), 24); /* TODO: hopefully we read something useful */ |
| 198 | s[24] = '\0'; /* cut the \n */ |
| 199 | return s; |
| 200 | } |
| 201 | |
| 202 | char *cmaes_SayHello(cmaes_t *t) { |
| 203 | /* write initial message */ |
no outgoing calls
no test coverage detected