* @ctx: Our buffer context structure.
* @count: The number of characters to get from the buffer.
* @c: Where to put the characters retrieved.
* @ctx: Our buffer context structure.
* @count: The number of characters to get from the buffer.
* @c: Where to put the characters retrieved.
* buffer_putchar - Puts a char to a buffer.
* @ctx: Our buffer context structure.
* @count: The number of characters to put into the buffer.
* buffer_putchar - Puts a char to a buffer.
* @ctx: Our buffer context structure.
* @count: The number of characters to put into the buffer.
*/
int file_fetchchar(void *fd, size_t count, void *c)
{
return !(read( *(int *) fd, c, count));
}
*/
int file_fetchchar(void *fd, size_t count, void *c)
{
return !(read( *(int *) fd, c, count));
}
*/
int file_putchar(void *fd, size_t count, void *c)
{
return !(write( *(int *) fd, c, count));
}
*/
int file_putchar(void *fd, size_t count, void *c)
{
return !(write( *(int *) fd, c, count));
}
*/
int stdin_getchar(void *ctx, size_t count, void *c)
{
return (fread(c, 1, count, stdin) != count);
}
*/
int stdin_getchar(void *ctx, size_t count, void *c)
{
return (fread(c, 1, count, stdin) != count);
}