Subversion Repositories Kolibri OS

Rev

Rev 7927 | Rev 7994 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7927 Rev 7942
Line 1... Line 1...
1
/*
1
/*
2
  Author: JohnXenox.
2
 * Author: JohnXenox aka Aleksandr Igorevich.
-
 
3
 *
-
 
4
 * Programme name: Backy
3
  Description: The program for backing up a file.
5
 * Description: The programme for backing up a file.
4
 
6
 *
5
               Works from command line, only!
7
 * Works from command line, only!
6
*/
8
 */
Line 7... Line 9...
7
 
9
 
Line -... Line 10...
-
 
10
#define CREATION_DATE "2020.05.17"
8
#define CREATION_DATE "2020.05.07"
11
 
9
 
12
#include 
10
#include 
13
//#include 
Line 11... Line 14...
11
#include 
14
#include 
Line 142... Line 145...
142
    }
145
    }
143
    else
146
    else
144
    {
147
    {
145
        //con_init_console_dll_param(-1, 23, -1, 23, "Backy");
148
        //con_init_console_dll_param(-1, 23, -1, 23, "Backy");
146
 
149
        if (con_init_console_dll()) return 1; // init fail
-
 
150
 
-
 
151
        printf("Useful info!");
-
 
152
 
Line 147... Line 153...
147
        printf("\n Name: Backy");
153
        printf("\n Name: Backy");
148
        printf("\n Date: %s", CREATION_DATE);
154
        printf("\n Date: %s", CREATION_DATE);
149
        printf("\n Description: The programme for backing up a file.\n");
155
        printf("\n Description: The programme for backing up a file.\n");
-
 
156
 
150
        printf("\n Author: JohnXenox\n");
157
        printf("\n Author: JohnXenox\n");
Line 151... Line 158...
151
 
158
 
152
        printf("\n Usage: backy  <-o path2>\n");
159
        printf("\n Usage: backy  <-o path2>\n");
153
        printf("  path1 - path to a file to be backuped.\n");
160
        printf("  path1 - path to a file to be backuped.\n");
Line 210... Line 217...
210
            dta = &days;
217
            dta = &days;
211
        }
218
        }
212
 
219
 
Line 213... Line 220...
213
 
220
 
Line 214... Line 221...
214
        itoa(*dta, num, 16);
221
        itoab(*dta, num, 16);
215
 
222
 
216
        if (num[1] == 0)
223
        if (num[1] == 0)
217
        {
224
        {
Line 252... Line 259...
252
            dta = &minutes;
259
            dta = &minutes;
253
        if (i == 2)
260
        if (i == 2)
254
            dta = &seconds;
261
            dta = &seconds;
255
 
262
 
Line 256... Line 263...
256
        itoa(*dta, num, 16);
263
        itoab(*dta, num, 16);
Line 257... Line 264...
257
 
264
 
258
        if (num[1] == 0)
265
        if (num[1] == 0)
259
        {
266
        {
260
            full_date[ofs] = '0';
267
            full_date[ofs] = '0';