FAUST compiler  0.9.9.6b8
Defines | Functions
compatibility.hh File Reference
#include <unistd.h>
Include dependency graph for compatibility.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DIRSEP   '/'
#define FAUST_PATH_MAX   1024

Functions

void getFaustPathname (char *str, unsigned int size)

Define Documentation

#define DIRSEP   '/'

Definition at line 66 of file compatibility.hh.

#define FAUST_PATH_MAX   1024

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: