dattypes.h

00001 /*  dattypes.h  - Some useful definitions and functions 
00002     This file is part of LibKMid 0.9.5
00003     Copyright (C) 1997,98,99,2000  Antonio Larrosa Jimenez
00004     LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html                                         
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009  
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014  
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 
00020     Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
00021 
00022 ***************************************************************************/ 
00023 #ifndef _DATTYPES_H
00024 #define _DATTYPES_H
00025 
00026 #include <stdio.h>
00027 #include <sys/types.h>
00028 
00029 #undef uchar
00030 #undef ushort
00031 #undef ulong
00032 
00036 typedef unsigned char uchar;
00037 
00041 typedef unsigned short ushort;
00042 
00046 typedef unsigned long ulong;
00047 
00048 ushort readShort(FILE *fh);
00049 ulong  readLong (FILE *fh);
00050 
00051 void printfdebug(const char *s,int a=0,int b=0, int c=0);
00052 void printfdebug(const char *s,int a,long b);
00053 void printfdebug(const char *s,double a,double b=0, double c=0);
00054 
00055 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys