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