52 |
52 |
53 #define FillChar(a, b, c) __FillChar(&(a), b, c) |
53 #define FillChar(a, b, c) __FillChar(&(a), b, c) |
54 |
54 |
55 void __FillChar(pointer p, int size, char fill); |
55 void __FillChar(pointer p, int size, char fill); |
56 string255 _strconcat(string255 a, string255 b); |
56 string255 _strconcat(string255 a, string255 b); |
|
57 string255 _strappend(string255 s, char c); |
|
58 string255 _strprepend(char c, string255 s); |
|
59 char * _pchar(string255 s); |
57 |
60 |
58 int Length(string255 a); |
61 int Length(string255 a); |
59 string255 copy(string255 a, int s, int l); |
62 string255 copy(string255 a, int s, int l); |
60 string255 delete(string255 a, int s, int l); |
63 string255 delete(string255 a, int s, int l); |
61 |
64 |
62 #define STRCONSTDECL(a, b) const string255 a = {.len = sizeof(b), .str = b} |
65 #define STRCONSTDECL(a, b) const string255 a = {.len = sizeof(b), .str = b} |
|
66 |
|
67 typedef int file; |
|
68 extern int FileMode; |
|
69 extern int IOResult; |
|
70 |
|
71 void assign(int f, string255 fileName); |
|
72 void reset(int f, int size); |
|
73 #define BlockRead(a, b, c, d) BlockRead_(a, &(b), c, &(d)) |
|
74 void BlockRead_(int f, void * p, int size, int * sizeRead); |
|
75 void close(int f); |