Subversion Repositories wimsdev

Rev

Rev 8123 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8123 Rev 8149
Line 43... Line 43...
43
int entrycount;
43
int entrycount;
44
 
44
 
45
int nocase=0, hassuffix=0, leaveline=0;
45
int nocase=0, hassuffix=0, leaveline=0;
46
int entrycount, ocount;
46
int entrycount, ocount;
47
 
47
 
48
/*
-
 
49
void *xmalloc(size_t n)
-
 
50
{
-
 
51
    void *p;
-
 
52
    p=malloc(n);
-
 
53
    if(p==NULL) exit(1);
-
 
54
    return p;
-
 
55
}
-
 
56
*/
-
 
57
/* Points to the end of the word */
-
 
58
/*char *find_word_end(char *p)
-
 
59
{
-
 
60
    int i;
-
 
61
    for(i=0;!isspace(*p) && *p!=0 && i<MAX_LINELEN; p++,i++);
-
 
62
    return p;
-
 
63
}
-
 
64
*/
-
 
65
/* Strips leading spaces */
-
 
66
/*char *find_word_start(char *p)
-
 
67
{
-
 
68
    int i;
-
 
69
    for(i=0; isspace(*p) && i<MAX_LINELEN; p++,i++);
-
 
70
    return p;
-
 
71
}
-
 
72
*/
-
 
73
/* strip trailing spaces; return string end. */
48
/* strip trailing spaces; return string end. */
74
char *strip_trailing_spaces2(char *p)
49
char *strip_trailing_spaces2(char *p)
75
{
50
{
76
    char *pp;
51
    char *pp;
77
    if(*p==0) return p;
52
    if(*p==0) return p;