diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-08 20:05:46 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-08 20:05:46 -0900 |
| commit | 32c2e2ddbdc4bc3622caeabf519f1fb4ca45c914 (patch) | |
| tree | d6c7a7dd08c7802e6e950e8b5588f7a00f638065 /include | |
| parent | 0f00b5d527ec6c2e7f41f2084126bb6035932a2e (diff) | |
| download | tinyrad-32c2e2ddbdc4bc3622caeabf519f1fb4ca45c914.tar.gz tinyrad-32c2e2ddbdc4bc3622caeabf519f1fb4ca45c914.tar.bz2 tinyrad-32c2e2ddbdc4bc3622caeabf519f1fb4ca45c914.tar.xz tinyrad-32c2e2ddbdc4bc3622caeabf519f1fb4ca45c914.zip | |
libtrutils: adding lfile.c
Diffstat (limited to 'include')
| -rw-r--r-- | include/trutils.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/trutils.h b/include/trutils.h index e9d44bf..4c1a033 100644 --- a/include/trutils.h +++ b/include/trutils.h | |||
| @@ -87,6 +87,8 @@ | |||
| 87 | ////////////////// | 87 | ////////////////// |
| 88 | #pragma mark - Data Types | 88 | #pragma mark - Data Types |
| 89 | 89 | ||
| 90 | typedef struct _trutils_file_buffer TRUtilsFile; | ||
| 91 | |||
| 90 | 92 | ||
| 91 | ///////////////// | 93 | ///////////////// |
| 92 | // // | 94 | // // |
| @@ -105,6 +107,28 @@ extern const char * program_name; | |||
| 105 | ////////////////// | 107 | ////////////////// |
| 106 | #pragma mark - Prototypes | 108 | #pragma mark - Prototypes |
| 107 | 109 | ||
| 110 | //-----------------// | ||
| 111 | // file prototypes // | ||
| 112 | //-----------------// | ||
| 113 | #pragma mark file prototypes | ||
| 114 | |||
| 115 | void | ||
| 116 | trutils_close( | ||
| 117 | TRUtilsFile * fb ); | ||
| 118 | |||
| 119 | |||
| 120 | TRUtilsFile * | ||
| 121 | trutils_open( | ||
| 122 | unsigned opts, | ||
| 123 | const char * filename ); | ||
| 124 | |||
| 125 | |||
| 126 | int | ||
| 127 | trutils_readline( | ||
| 128 | unsigned opts, | ||
| 129 | TRUtilsFile * fb ); | ||
| 130 | |||
| 131 | |||
| 108 | //--------------------// | 132 | //--------------------// |
| 109 | // logging prototypes // | 133 | // logging prototypes // |
| 110 | //--------------------// | 134 | //--------------------// |
