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 184 of file compatibility.cpp.

Referenced by initFaustDirectories().

00185     {
00186         char* path = getenv("_");
00187         if (path) {
00188             strncpy(str, path, size);
00189         } else {
00190             // prevent the case of _ undefined
00191             strncpy(str, "/usr/local/bin/faust", size);
00192         } 
00193     }

Here is the caller graph for this function:

Generated on Tue Aug 10 08:04:11 2010 for FAUST compiler by  doxygen 1.6.3