Category : OS/2 Files
Archive   : KSH48.ZIP
Filename : STDH.H

 
Output of file : STDH.H contained in archive : KSH48.ZIP
/* NAME:
* stdh.h - standard headers
*
* SYNOPSIS:
* #include "stdh.h"
*
* DESCRIPTION:
* We use this header to encapsulate all the stddef et al
* inclusion so that most of the source can ignore the
* problems that their lack might cause.
*
* SEE ALSO:
*
*
* AMENDED:
* 91/11/25 13:33:12 (sjg)
*
* RELEASED:
* 91/11/25 13:33:17 v1.3
*
* SCCSID:
* @(#)stdh.h 1.3 91/11/25 13:33:12 (sjg)
*
*/

#ifndef ARGS
# ifdef __STDC__
# define ARGS(args) args
# else
# define ARGS(args) ()
# ifdef VOID
# define void VOID
# endif
# define const
# define volatile
# endif
#endif

#include
/* if we have std headers then include them here
* otherwise make allowances
*/
#ifndef NOSTDHDRS
# include
# include
# include
# include
#else
# ifdef HAVE_SYS_STDTYPES
# include
# else
# include
/* just in case they have sys/stdtypes and don't know it
*/
# ifndef __sys_stdtypes_h
#define _PID_T
#define _CLOCK_T
typedef int pid_t;
typedef long clock_t;
# endif
# endif
# ifdef _SYSV
# include
# else
# include
# define strchr index
# define strrchr rindex
# endif
/* just a useful subset of what stdlib.h would have
*/
extern char * getenv ARGS((const char *));
extern void * malloc ARGS((size_t));
extern int free ARGS((void *));
extern int exit ARGS((int));

/* these _should_ match ANSI */
extern char * strstr ARGS((const char *, const char *));
extern void * memmove ARGS((void *, const void *, size_t));
extern void * memcpy ARGS((void *, const void *, size_t));
#endif /* NOSTDHDRS */


#ifndef offsetof
#define offsetof(type,id) ((size_t)&((type*)NULL)->id)
#endif



  3 Responses to “Category : OS/2 Files
Archive   : KSH48.ZIP
Filename : STDH.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/