1 |
hib |
1.1 |
|
2 |
|
|
|
3 |
|
|
char *temp_dir(); |
4 |
|
|
|
5 |
|
|
/* pull one field out of a bunch */ |
6 |
|
|
char *field(char *x, char *y,int fieldnum); |
7 |
|
|
|
8 |
|
|
|
9 |
|
|
/* pull one numerical field out of a bunch */ |
10 |
|
|
int fieldi(char *x,int fieldnum); |
11 |
|
|
|
12 |
|
|
|
13 |
|
|
/* pull a range of fields out of a bunch |
14 |
|
|
source, |
15 |
|
|
destination, |
16 |
|
|
from field number (starts with 0) |
17 |
|
|
to field number (starts with 0) |
18 |
|
|
withend - include the sentenniel |
19 |
|
|
*/ |
20 |
|
|
char *fieldspan(char *x, char *y,int fromfieldnum,int tofieldnum,int withend); |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
int getcount(char *out,char *in,int *pcount); |
30 |
|
|
int get2counts(char *out,char *in,int *pcount1,int *pcount2,int *pfields); |
31 |
|
|
|
32 |
|
|
/* make a marker identification string |
33 |
|
|
|
34 |
|
|
Say we have |
35 |
|
|
Engler|Hibbard |
36 |
|
|
Engler|Micelle |
37 |
|
|
Engler|Tim |
38 |
|
|
And all are the same length, |
39 |
|
|
we would produce: |
40 |
|
|
Engler| |
41 |
|
|
If markerfields is 1 |
42 |
|
|
|
43 |
|
|
Markerfields of 0 returns a null string |
44 |
|
|
*/ |
45 |
|
|
int make_marker(char *source,char *dest, int markerfields); |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
int add_fields(char *x, int numfields); |
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
int date_to_code(char *date); |
54 |
|
|
char * code_to_date(int code,char*date); |
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
char *set_number_of_fields(char *x,int number_of_fields); |
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
char * initcap(char *dest,char *src); |
64 |
|
|
char * upper(char *dest,char *src); |
65 |
|
|
char * lower(char *dest,char *src); |
66 |
|
|
int date_to_mdy(char *date,int *pmonth,int *pday, int *pyear); |
67 |
|
|
|
68 |
|
|
char *decode_url(char *out,char *in,int max); |
69 |
|
|
char *encode_url(char *out,char *in,int max); |
70 |
|
|
|
71 |
|
|
char *encode_html(char *out,char *in, int max); |