FAUST compiler  0.9.9.6b8
Functions
compatibility.cpp File Reference
#include <stdlib.h>
#include <string.h>
Include dependency graph for compatibility.cpp:

Go to the source code of this file.

Functions

void getFaustPathname (char *str, unsigned int size)

Function Documentation

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);
        } 
    }

Here is the caller graph for this function: