SAI || Sommersemester 1997 || Systemnahe Software II || Übungen

<- Alle Module

Lösung zu Blatt 2 (Aufgabe 2): typedef.h

Typdefinitionen für Suchfunktionen.

typedef.h

/*
 *      typedef.h -     type definitions for search functions
 *
 *      Martin Hasch, University of Ulm, April 1997
 */

#ifndef TYPEDEF_H
#define TYPEDEF_H

typedef unsigned long Code;
typedef unsigned long Key;

/*
 *      Search function semantics:
 *              If key is found in the given interval, *result is valid
 *              and return value is 1, otherwise return value is 0.
 */
typedef int (*Searchfunc)(Code code, Key min, Key max, Key *result);

#endif  /* TYPEDEF_H */
<- Alle Module
SAI || Sommersemester 1997 || Systemnahe Software II || Übungen

Martin Hasch, Mai 1997