-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVersion.cpp
More file actions
57 lines (51 loc) · 1.73 KB
/
Copy pathVersion.cpp
File metadata and controls
57 lines (51 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*---------------------------------------------------------------------
Dieter Neubacher Vers.: 1.1 WuHu 01.07.94
Vers,: 1.4 21.07.96
Vers.: 2.0 25.01.97
-------------------------------------------------------------------
Version.cpp
Vers.: 2.0 anpassungen für WIN32
-----------------------------------------------------------------------
*/
#include <time.h>
#include <sys\types.h>
#include <sys\stat.h>
#include <stdio.h>
#include "version.h"
/*---------------------------------------------------------------------
R A M E A U Music Analysis Software
-----------------------------------------------------------------------
*/
void rameau_version (FILE * stream)
{
fprintf (stream, "\nRAMEAU Music Analysis System Version 2.0\n");
fprintf (stream, "\n(c) 1994-97 by ARION Verlag, Muenchen\n\n");
return;
}
/*--------------------------------------------------------------------------
test file print errormassige if file not found
----------------------------------------------------------------------------
*/
int SetFileInfoLine( FILE *stream, char *FileName )
{
struct _stat buf;
/* Get data associated with file: */
if( _stat( FileName, &buf ) != 0 )
{
return (-1);
}
else
{
if( !(buf.st_mode & _S_IWRITE) )
{
return (-3);
}
}
// Set File information for Printing Header
#ifdef WIN32
fprintf( stream, "* File : %s Time : %s", FileName, ctime( &buf.st_mtime ) );
#else
fprintf( stream, "* File : %s Time : %s", FileName, ctime( &buf.st_atime ) );
#endif
return 0;
}