diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
| commit | d7229970f8910aa756d299f8bdceee7f4d1fbfbc (patch) | |
| tree | a95ff2e6bd50578d34d6449c9fde173acc0ef59c /lib/io/io.h | |
| parent | e947b1459f93f11ad91f3e920676fe1b828281e7 (diff) | |
add env and make smash be able to parse files with comments
Diffstat (limited to 'lib/io/io.h')
| -rw-r--r-- | lib/io/io.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/io/io.h b/lib/io/io.h index 06cc541..c373cd0 100644 --- a/lib/io/io.h +++ b/lib/io/io.h @@ -5,13 +5,20 @@ void wstd(const char *buf); void rstd(char *buf, unsigned long count); +void wf(unsigned int fd, char *buf); void wstdf__(const char *buf, const void **args); +void wff__(unsigned int fd, const char *buf, const void **args); #define wstdf(buf, ...) { \ const void *__wstdf__args__[] = { __VA_ARGS__ }; \ wstdf__(buf, __wstdf__args__); \ } +#define wff(fd, buf, ...) { \ + const void *__wstdf__args__[] = { __VA_ARGS__ }; \ + wff__(fd, buf, __wstdf__args__); \ +} + #endif |