FAUST compiler  0.9.9.6b8
Functions
compatibility.cpp File Reference
#include "compatibility.hh"
#include "math.h"
#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 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: