** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: kstddef.h,v 1.12 2000/06/05 01:32:45 kevin Exp $
+** $Id: kstddef.h,v 1.14 2000/06/07 03:49:54 kevin Exp $
** $Log: kstddef.h,v $
+** Revision 1.14 2000/06/07 03:49:54 kevin
+** *** empty log message ***
+**
+** Revision 1.13 2000/06/07 00:59:38 kevin
+** added imagefiles
+**
** Revision 1.12 2000/06/05 01:32:45 kevin
** Added C++ compatibility
**
#define STR_MAX_LEN 255
#define STR_SIZE STR_MAX_LEN+1
+#if !defined(__cplusplus)
typedef unsigned char string[STR_SIZE];
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+#endif
#include <stdio.h>
#include <stdlib.h>
#define SIZEOF_DOUBLE 8
#endif
+typedef signed char kint8;
+typedef unsigned char kuint8;
+
#if SIZEOF_INT == 4
typedef int kint32;
typedef unsigned int kuint32;
typedef double kfloat64;
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
/* allocnum.c */
float *alloc_float(int n);
double *alloc_double(int n);
/* netorder.c */
void *strreverse (void *dest, const void *src, size_t n);
-int read_n32bint (kuint32 *n, int fd);
-int write_n32bint (kuint32 const *n, int fd);
+int read_nint16 (kuint16 *n, int fd);
+int write_nint16 (kuint16 const *n, int fd);
+int read_nint32 (kuint32 *n, int fd);
+int write_nint32 (kuint32 const *n, int fd);
int read_nfloat32 (float *f, int fd);
int write_nfloat32 (float const *f, int fd);
int read_nfloat64 (double *d, int fd);
int write_nfloat64 (double const *d, int fd);
+void ConvertNetworkOrder (void* buffer, size_t bytes);
#ifdef __cplusplus
}