minmax.h

Thu, 20 Dec 2007 19:04:14 +0100

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 20 Dec 2007 19:04:14 +0100
changeset 113
0f2da6be13b1
parent 62
aae5facf9fc5
permissions
-rw-r--r--

Added prefix stuff

/*
 * libtu/minmax.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2004. 
 *
 * You may distribute and modify this library under the terms of either
 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
 */

#ifndef LIBTU_MINMAX_H
#define LIBTU_MINMAX_H


static int minof(int x, int y)
{
    return (x<y ? x : y);
}


static int maxof(int x, int y)
{
    return (x>y ? x : y);
}


#endif /* LIBTU_MINMAX_H */

mercurial