|
FAUST compiler
0.9.9.6b8
|
#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Functions | |
| void | getFaustPathname (char *str, unsigned int size) |
| void getFaustPathname | ( | char * | str, |
| unsigned int | size | ||
| ) |
Definition at line 180 of file compatibility.cpp.
Referenced by initFaustDirectories().
{
char* path = getenv("_");
if (path) {
strncpy(str, path, size);
} else {
// prevent the case of _ undefined
strncpy(str, "/usr/local/bin/faust", size);
}
}

1.8.0