mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Make sgetbs() return the number of characters read on success
This commit is contained in:
parent
97419fb67f
commit
969cb5ca31
5 changed files with 35 additions and 5 deletions
|
|
@ -329,7 +329,7 @@ int sgetble32(STREAM* f, uint32_t* value);
|
|||
* Read a binary string.
|
||||
* Return -1 on error or if the buffer is too small, or the number of chars read.
|
||||
*/
|
||||
int sgetbs(STREAM* f, char* str, size_t size);
|
||||
ssize_t sgetbs(STREAM* f, char* str, size_t size);
|
||||
|
||||
/****************************************************************************/
|
||||
/* put */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue