OOStuBS - Technische Informatik II (TI-II)  2.4
strbuf.cc
gehe zur Dokumentation dieser Datei
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
2  * Technische Informatik II *
3  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
4  * *
5  * S T R I N G B U F F E R *
6  * *
7 \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
8 
9 #include "common/strbuf.h"
10 
12 
13 }
14 
16 
17 }
18 
19 void Stringbuffer::put (char c) {
20  buffer[pos] = c;
21  pos++;
22  if (pos == sizeof (buffer))
23  flush ();
24 }