52 fp = fopen(fname,
"r");
55 printf(
"file not found\n");
67 if (fgets(line,
sizeof(line), fp) ==
nullptr) {
72 if ((strlen(line) < 2) || !isupper(line[0]) || (line[1] !=
':')) {
79 for (f = line; *f !=
'\0'; f++) {
93 }
else if (t > (f + 1)) {
94 memmove(f + 1, t, strlen(t) + 1);
100 if ((strlen(line) + strlen(buf) + 1) >= maxlen) {
101 printf(
"line too long\n");
Vector< float, 6 > f(float t, const Matrix< float, 6, 1 > &, const Matrix< float, 3, 1 > &)
int load_mixer_file(const char *fname, char *buf, unsigned maxlen)