FAUST compiler  0.9.9.6b8
Macros | 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.

Macros

#define DIRSEP   '/'
 
#define FAUST_PATH_MAX   1024
 

Functions

void getFaustPathname (char *str, unsigned int size)
 

Macro Definition Documentation

#define DIRSEP   '/'

Definition at line 84 of file compatibility.hh.

#define FAUST_PATH_MAX   1024

Function Documentation

void getFaustPathname ( char *  str,
unsigned int  size 
)

Definition at line 224 of file compatibility.cpp.

Referenced by initFaustDirectories().

225  {
226  char* path = getenv("_");
227  if (path) {
228  strncpy(str, path, size);
229  } else {
230  // prevent the case of _ undefined
231  strncpy(str, "/usr/local/bin/faust", size);
232  }
233  }

Here is the caller graph for this function: