PSDev.cpp File Reference

#include "PSDev.h"
#include "string.h"
#include "math.h"
#include "compatibility.hh"
#include <iostream>
Include dependency graph for PSDev.cpp:

Go to the source code of this file.

Functions

static char * addFileNum (const char *fname)

Variables

static int gFileNum = 0

Function Documentation

static char* addFileNum ( const char *  fname  )  [static]

Definition at line 36 of file PSDev.cpp.

References gFileNum.

Referenced by PSDev::PSDev().

00037 {
00038     char    f[256];
00039     char    s[256]; 
00040     int     i;
00041 
00042     // remove suffixes (.xxx.yyy)
00043     for (i=0; (fname[i] != 0) && (fname[i] != '.'); i++) {
00044         f[i] = fname[i];
00045     }
00046     f[i] = 0;
00047 
00048     // add number and .ps suffix
00049     snprintf(s, 255, "%s-%d.ps", f, ++gFileNum);
00050     //cerr << "file name " << s << endl;
00051     return strdup(s);
00052 }

Here is the caller graph for this function:


Variable Documentation

int gFileNum = 0 [static]

Definition at line 34 of file PSDev.cpp.

Referenced by addFileNum().

Generated on Thu Apr 29 00:00:10 2010 for FAUST compiler by  doxygen 1.6.3