lsflib/include/lsf.h
changeset 120 430dbec0c228
parent 119 305d2ca32936
child 121 fef2ccfa7b12
equal deleted inserted replaced
119:305d2ca32936 120:430dbec0c228
     1 /**
       
     2  * test/demos/lsflib/include/lsf.h
       
     3  * Copyright (C) 2008 Markus Broeker
       
     4  */
       
     5 
       
     6 #ifndef __LSF_H__
       
     7 #define __LSF_H__
       
     8 
       
     9 #ifndef LINE_LENGTH
       
    10 #define LINE_LENGTH 100
       
    11 #endif
       
    12 
       
    13 #include <stdio.h>
       
    14 #ifndef __LIST__H
       
    15 #include <list.h>
       
    16 #endif
       
    17 
       
    18 /* tokenizer splits a file into tokens */
       
    19 Node *tokenizer (FILE *, const char *);
       
    20 
       
    21 /* tokenchar splits a file into chars */
       
    22 int tokenchar (FILE *);
       
    23 
       
    24 /* get_line returns a multiline string str="...\n..." */
       
    25 char *get_line (const char *, const char *, size_t);
       
    26 
       
    27 /* isDir returns true, if a fd points to a dir */
       
    28 int isDir (char *);
       
    29 
       
    30 /* isDir returns true, if a fd points to a file */
       
    31 int isFile (char *);
       
    32 
       
    33 /* getdir prints a dir hierarchy */
       
    34 void getdir (char *, int);
       
    35 
       
    36 /* returns a pointer int*  */
       
    37 unsigned char *md5sum (char *);
       
    38 
       
    39 void md5recursive (char *, int);
       
    40 
       
    41 #endif