SAI ||
Sommersemester 1997 ||
Systemnahe Software II ||
Übungen
<- Alle Module
Lösung zu Blatt 7 (Aufgabe 8): stream.h
Definitionen für Ein- und Ausgabe.
#include <stdio.h>
/*
* Struktur fuer eine Stream-Verbindung
*/
typedef struct {
int sock; /* in case of sockets */
char buf[4*BUFSIZ]; /* buffer for reading */
int end; /* Bytes in buffer */
int beg; /* read until here */
} STREAM;
STREAM *openstream(char *adr);
void closestream(STREAM *s);
char *getstream(char *buf, int len, STREAM *s);
<- Alle Module
SAI ||
Sommersemester 1997 ||
Systemnahe Software II ||
Übungen
Matthias Grabert, Juli 1997