diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2020-07-07 07:02:33 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2020-07-07 07:02:33 +0000 |
| commit | 3960d8924a1a0ba2f0f5e8510e73a10ee20d726b (patch) | |
| tree | 068fa33f5b47453a5521c0ff1b2b613ff8a3452c /include/read.h | |
| parent | 1f958cfad78842ab9a1193471589231e25596cb3 (diff) | |
Diffstat (limited to 'include/read.h')
| -rw-r--r-- | include/read.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/read.h b/include/read.h index 369540ede3a8..664ff983e522 100644 --- a/include/read.h +++ b/include/read.h @@ -1,9 +1,9 @@ /* * ***************************************************************************** * - * Copyright (c) 2018-2020 Gavin D. Howard and contributors. + * SPDX-License-Identifier: BSD-2-Clause * - * All rights reserved. + * Copyright (c) 2018-2020 Gavin D. Howard and contributors. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -33,8 +33,8 @@ * */ -#ifndef BC_IO_H -#define BC_IO_H +#ifndef BC_READ_H +#define BC_READ_H #include <stdlib.h> @@ -55,5 +55,6 @@ BcStatus bc_read_line(BcVec *vec, const char *prompt); void bc_read_file(const char *path, char **buf); BcStatus bc_read_chars(BcVec *vec, const char *prompt); +bool bc_read_buf(BcVec *vec, char *buf, size_t *buf_len); -#endif // BC_IO_H +#endif // BC_READ_H |
