home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckl196.zip / ckclib.h < prev    next >
C/C++ Source or Header  |  1999-12-30  |  3KB  |  75 lines

  1. /* ckclib.h -- C-Kermit library routine prototypes */
  2. /*
  3.   Author: Frank da Cruz <fdc@columbia.edu>,
  4.   Columbia University Academic Information Systems, New York City.
  5.  
  6.   Copyright (C) 2000,
  7.     Trustees of Columbia University in the City of New York.
  8.     All rights reserved.  See the C-Kermit COPYING.TXT file or the
  9.     copyright text in the ckcmai.c module for disclaimer and permissions.
  10. */
  11. #ifndef CKCLIB_H
  12. #define CKCLIB_H
  13.  
  14. /* Base-64 conversion needed for script programming and HTTP */
  15.  
  16. #ifdef CK_ANSIC
  17. _PROTOTYP( int ckstrncpy, (char *, const char *, int) );
  18. #else
  19. _PROTOTYP( int ckstrncpy, (char *, char *, int) );
  20. #endif /* CK_ANSIC */
  21. _PROTOTYP( char * chartostr, (int) );
  22. _PROTOTYP( int cklower, (char *) );
  23. _PROTOTYP( int ckindex, (char *, char *, int, int, int) );
  24. _PROTOTYP( char * ckitoa, (int) );
  25. _PROTOTYP( char * ckltoa, (long) );
  26. _PROTOTYP( int ckmatch, (char *, char *, int, int ) );
  27. _PROTOTYP( VOID ckmemcpy, (char *, char *, int) );
  28. _PROTOTYP( char * ckstrchr, (char *, char) );
  29. _PROTOTYP( int ckrchar, (char *) );
  30. _PROTOTYP( int ckstrcmp, (char *, char *, int, int) );
  31. #define xxstrcmp(a,b,c) ckstrcmp(a,b,c,0)
  32. _PROTOTYP( int ckstrpre, (char *, char *) );
  33. _PROTOTYP( VOID sh_sort, (char **, char **, int, int, int, int) );
  34. _PROTOTYP( char * brstrip, (char *) );
  35. _PROTOTYP( VOID makelist, (char *, char *[], int) );
  36. #ifndef CK_ANSIC
  37. _PROTOTYP( VOID makestr, (char **, char *) );
  38. _PROTOTYP( VOID xmakestr, (char **, char *) );
  39. #else /* CK_ANSIC */
  40. _PROTOTYP( VOID makestr, (char **, const char *) );
  41. _PROTOTYP( VOID xmakestr, (char **, const char *) );
  42. #endif /* CK_ANSIC */
  43. _PROTOTYP( int fileselect, (char *,
  44.                 char *, char *, char *, char *,
  45.                 long, long,
  46.                 int, int,
  47.                 char **) );
  48. _PROTOTYP( int chknum, (char *) );
  49. _PROTOTYP( int rdigits, (char *) );
  50. _PROTOTYP( char * ckradix, (char *,int,int) );
  51.  
  52. #ifndef NOB64
  53. _PROTOTYP( int b8tob64, (char *,int,char *,int));
  54. _PROTOTYP( int b64tob8, (char *,int,char *,int));
  55. #endif /* NOB64 */
  56.  
  57. #ifdef CKFLOAT
  58. _PROTOTYP( int isfloat, (char *,int) );
  59. #ifndef CKCLIB_C
  60. #ifndef CKWART_C
  61. extern CKFLOAT floatval;
  62. #endif /* CKWART_C */
  63. #endif /* CKCLIB_C */
  64. #endif /* CKFLOAT */
  65.  
  66. _PROTOTYP( char * parnam, (char) );
  67. _PROTOTYP( char *hhmmss, (long) );
  68.  
  69. _PROTOTYP( VOID lset, (char *, char *, int, int) );
  70. _PROTOTYP( VOID rset, (char *, char *, int, int) );
  71. _PROTOTYP( char * ulongtohex, (unsigned long, int) );
  72. _PROTOTYP( long hextoulong, (char *, int) );
  73.  
  74. #endif /* CKCLIB_H */
  75.