16 #include "../../include/ecl/devices/console.hpp" 30 long n = buffer.append(c);
31 if ( buffer.full() ) {
39 unsigned int no_written = 0;
40 while ( no_written < n ) {
41 no_written += buffer.append(s+no_written,n-no_written);
42 if ( buffer.full() ) {
52 int result = fflush(stdout);
71 unsigned int no_written = 0;
72 while ( no_written < n ) {
84 int result = fflush(stderr);
96 c =
static_cast<char>(fgetc(stdin));
108 char *result = fgets(s,n,stdin);
109 if ( result == NULL ) {
116 size_t length = strlen(s);
void flush() ecl_assert_throw_decl(StandardException)
Flush the internal buffer.
long write(const char &c) ecl_assert_throw_decl(StandardException)
Write a character to the buffer.
Embedded control libraries.
long append(const char &c)
#define ecl_assert_throw(expression, exception)
long read(char &c) ecl_assert_throw_decl(StandardException)
Read a character from standard input.
void flush() ecl_assert_throw_decl(StandardException)
Flush the internal buffer.
#define ecl_assert_throw_decl(exception)
#define ecl_debug_throw(exception)
long write(const char &c) ecl_assert_throw_decl(StandardException)
Write a character to the buffer.
devices::CharStringBuffer buffer