//
// Copyright (C) 1991 Texas Instruments Incorporated.
//
// Permission is granted to any individual or institution to use, copy, modify,
// and distribute this software, provided that this complete copyright and
// permission notice is maintained, intact, in all copies and supporting
// documentation.
//
// Texas Instruments Incorporated provides this software "as is" without
// express or implied warranty.
//
// This file creates stubs for Glockenspiel's incorrectly
// generated function names for overloaded unix functions.
// These stubs simply call the correct unix function.  This
// should get fixed by Glockenspiel sometime and this should
// go away.
//

#include <string.h>
#include <stdlib.h>

double strtodFPC_PPC__ (const char *s1, char **s2)
  { 
   return ( strtod ((char*)s1, s2) );
  }

long strtolFPC_PPC_I__ (const char *s1, char **s2, int i)
  { return ( strtol ((char*)s1, s2, i) );
  }

extern char *strcpyFPC_PC__ (char *s1, const char *s2)
  { return ( strcpy (s1, (char*)s2) );
  }

extern char *strncpyFPC_PC_I__ (char *s1, const char *s2,  int i) 
  { return ( strncpy (s1, (char*)s2, i) );
  }

extern char *strncpyFPC_PC_UI__ (char *s1, const char *s2,  int i) 
  { return ( strncpy (s1, (char*)s2, i) );
  }

extern char *strcatFPC_PC__ (char *s1, const char *s2)
  { return ( strcat (s1, (char*)s2) );
  }

extern char *strncatFPC_PC_I__ (char *s1, const char *s2, int i)
  { return ( strncat (s1, (char*)s2, i) );
  }

extern char *strchrFPC_I__ (const char *s1, int i)
  { return ( strchr ((char*)s1, i) );
  }

extern char *strrchrFPC_I__ (const char *s1, int i)
  { return ( strrchr ((char*)s1, i) );
  }

extern int strcmpFPC_PC__ (const char *s1, const char *s2)
  {
	return ( strcmp ((char*)s1, (char*)s2) );
  }

extern int strncmpFPC_PC_I__ (const char *s1, const char *s2, int i)
  { return ( strncmp ((char*)s1, (char*)s2, i) );
  }

extern int strlenFPC__ (const char *s1)
  { return ( strlen ((char*)s1) );
  }

#if defined(DOS) || defined(MSDOS)
// DOS uses const strings and unsigned int's
extern int strncmpFPC_PC_UI__ (char *s1, char *s2, int i)
  {return ( strncmp (s1, s2, i) );
  }

extern char *strncatFPC_PC_UI__ (char *s1, char *s2, int i)
  { return ( strncat (s1, s2, i) );
  }
#endif
