P
pdmountaineer
hi all,
I made an application in MATLAB, but to make code fast and efficient, I
use ANSI C routines, which I compile under MATLAB as MEX files (MATLAB
executables).
To protect my C routines, I use a function "copyright.c" that makes the
application stop if it has expired (1 month for example). Therefore I
used the ANSI C function <time_t time(time_t *tp)>.
If the application has expired, I would also like to have the files in
the current directory to be removed. Therefore I would like to use the
ANSI C function <int remove(const char *filename)>, but how can I get
the current directory?
I made an application in MATLAB, but to make code fast and efficient, I
use ANSI C routines, which I compile under MATLAB as MEX files (MATLAB
executables).
To protect my C routines, I use a function "copyright.c" that makes the
application stop if it has expired (1 month for example). Therefore I
used the ANSI C function <time_t time(time_t *tp)>.
If the application has expired, I would also like to have the files in
the current directory to be removed. Therefore I would like to use the
ANSI C function <int remove(const char *filename)>, but how can I get
the current directory?