Subversion Repositories SvarDOS

Rev

Rev 1719 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1719 Rev 1823
Line 23... Line 23...
23
 */
23
 */
24
 
24
 
25
#ifndef HELPERS_H
25
#ifndef HELPERS_H
26
#define HELPERS_H
26
#define HELPERS_H
27
 
27
 
-
 
28
/* sets y, m, d to current (DOS) date */
-
 
29
void dos_get_date(unsigned short *y, unsigned char *m, unsigned char *d);
-
 
30
 
-
 
31
/* sets h, m, s to current (DOS) time */
-
 
32
void dos_get_time(unsigned char *h, unsigned char *m, unsigned char *s);
-
 
33
 
28
/* case-insensitive comparison of strings, compares up to maxlen characters.
34
/* case-insensitive comparison of strings, compares up to maxlen characters.
29
 * returns non-zero on equality. */
35
 * returns non-zero on equality. */
30
int imatchlim(const char *s1, const char *s2, unsigned short maxlen);
36
int imatchlim(const char *s1, const char *s2, unsigned short maxlen);
31
 
37
 
32
#define imatch(a,b) imatchlim(a,b,0xffff)
38
#define imatch(a,b) imatchlim(a,b,0xffff)