source: trunk/third/kermit/ckclib.h @ 20081

Revision 20081, 3.4 KB checked in by zacheiss, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20080, which included commits to RCS files with non-trunk default branches.
Line 
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) 2002,
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
14struct stringarray {
15    char ** a_head;
16    int a_size;
17};
18
19#ifdef CK_ANSIC
20_PROTOTYP( int ckstrncpy, (char *, const char *, int) );
21_PROTOTYP( int ckstrncat, (char *, const char *, int) );
22#else
23_PROTOTYP( int ckstrncpy, (char *, char *, int) );
24_PROTOTYP( int ckstrncat, (char *, char *, int) );
25#endif /* CK_ANSIC */
26
27_PROTOTYP( int ckmakmsg,  (char *, int, char *, char *, char *, char *) );
28_PROTOTYP( int ckmakxmsg, (char *, int,
29                           char *, char *, char *, char *, char *, char *,
30                           char *, char *, char *, char *, char *, char *) );
31
32_PROTOTYP( char * ckstrpbrk, (char *, char *) );
33_PROTOTYP( char * ckstrstr, (char *, char *) );
34_PROTOTYP( char * chartostr, (int) );
35_PROTOTYP( int cklower, (char *) );
36_PROTOTYP( int ckupper, (char *) );
37_PROTOTYP( int ckindex, (char *, char *, int, int, int) );
38_PROTOTYP( char * ckctoa, (char) );
39_PROTOTYP( char * ckctox, (CHAR, int) );
40_PROTOTYP( char * ckitoa, (int) );
41_PROTOTYP( char * ckuitoa, (unsigned int) );
42_PROTOTYP( char * ckltoa, (long) );
43_PROTOTYP( char * ckultoa, (unsigned long) );
44_PROTOTYP( char * ckitox, (int) );
45_PROTOTYP( char * ckltox, (long) );
46_PROTOTYP( int ckmatch, (char *, char *, int, int ) );
47_PROTOTYP( VOID ckmemcpy, (char *, char *, int) );
48_PROTOTYP( char * ckstrchr, (char *, char) );
49_PROTOTYP( char * ckstrrchr, (char *, char) );
50_PROTOTYP( int ckrchar, (char *) );
51_PROTOTYP( int ckstrcmp, (char *, char *, int, int) );
52#define xxstrcmp(a,b,c) ckstrcmp(a,b,c,0)
53_PROTOTYP( int ckstrpre, (char *, char *) );
54_PROTOTYP( VOID sh_sort, (char **, char **, int, int, int, int) );
55_PROTOTYP( char * brstrip, (char *) );
56_PROTOTYP( char * fnstrip, (char *) );
57#ifdef COMMENT
58_PROTOTYP( char * brace, (char *) );
59#endif /* COMMENT */
60_PROTOTYP( int dquote, (char *, int, int) );
61_PROTOTYP( VOID makelist, (char *, char *[], int) );
62#ifndef CK_ANSIC
63_PROTOTYP( VOID makestr, (char **, char *) );
64_PROTOTYP( VOID xmakestr, (char **, char *) );
65#else /* CK_ANSIC */
66_PROTOTYP( VOID makestr, (char **, const char *) );
67_PROTOTYP( VOID xmakestr, (char **, const char *) );
68#endif /* CK_ANSIC */
69_PROTOTYP( int chknum, (char *) );
70_PROTOTYP( int rdigits, (char *) );
71_PROTOTYP( char * ckradix, (char *,int,int) );
72
73/* Base-64 conversion needed for script programming and HTTP */
74
75#ifndef NOB64
76_PROTOTYP( int b8tob64, (char *,int,char *,int));
77_PROTOTYP( int b64tob8, (char *,int,char *,int));
78#endif /* NOB64 */
79
80#ifdef CKFLOAT
81_PROTOTYP( int isfloat, (char *,int) );
82#ifndef CKCLIB_C
83#ifndef CKWART_C
84extern CKFLOAT floatval;
85#endif /* CKWART_C */
86#endif /* CKCLIB_C */
87#endif /* CKFLOAT */
88
89_PROTOTYP( char * parnam, (char) );
90_PROTOTYP( char *hhmmss, (long) );
91
92_PROTOTYP( VOID lset, (char *, char *, int, int) );
93_PROTOTYP( VOID rset, (char *, char *, int, int) );
94_PROTOTYP( char * ulongtohex, (unsigned long, int) );
95_PROTOTYP( long hextoulong, (char *, int) );
96_PROTOTYP( struct stringarray * cksplit, (int,int,
97                                          char *,char *,char *,int,int,int) );
98
99#endif /* CKCLIB_H */
Note: See TracBrowser for help on using the repository browser.