* add C027_Support fork
Fork of C027_Support by
Diff: Pipe.h
- Revision:
- 13:e2446fcdc246
- Parent:
- 9:e7a5959ffae1
- Child:
- 21:c4d64830bf02
diff -r 684b31d5482b -r e2446fcdc246 Pipe.h --- a/Pipe.h Fri Nov 15 13:33:39 2013 +0000 +++ b/Pipe.h Tue Nov 19 08:34:51 2013 +0000 @@ -20,7 +20,7 @@ _b = b ? b : _a; _s = n; } - virtual ~Pipe() + virtual ~Pipe(void) { if (_a) delete [] _a; @@ -37,7 +37,7 @@ s += _s; return s - 1; } - void putc(T c) + T putc(T c) { int i = _w; int j = i; @@ -45,7 +45,8 @@ while (i == _r) // = !writeable() /*wait for space*/; _b[j] = c; - _w = i; + _w = i; + return c; } int put(const T* p, int n, bool t = false) {