lsflib/include/lsf/lsf.h
author Markus Bröker <mbroeker@largo.dyndns.tv>
Mon, 29 Nov 2010 00:04:55 +0100
changeset 162 fad55be2d07c
parent 158 2cddd4d26139
permissions -rw-r--r--
damn strncpy function committer: Markus Bröker <mbroeker@largo.homelinux.org>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     1
/**
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     2
 * test/demos/lsflib/include/lsf.h
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     3
 * Copyright (C) 2008 Markus Broeker
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     4
 */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     5
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     6
#ifndef __LSF_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     7
#define __LSF_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     8
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     9
#ifndef LINE_LENGTH
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    10
#define LINE_LENGTH 100
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    11
#endif
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    12
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    13
#include <stdio.h>
158
2cddd4d26139 removed unnecessary #includes
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 153
diff changeset
    14
#include <stdlib.h>
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    15
#ifndef __LIST__H
121
fef2ccfa7b12 step 2) Header seperation
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 120
diff changeset
    16
#include <lsf/list.h>
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    17
#endif
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    18
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    19
/* tokenizer splits a file into tokens */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    20
Node *tokenizer (FILE *, const char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    21
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    22
/* tokenchar splits a file into chars */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    23
int tokenchar (FILE *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    24
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    25
/* get_line returns a multiline string str="...\n..." */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    26
char *get_line (const char *, const char *, size_t);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    27
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    28
/* isDir returns true, if a fd points to a dir */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    29
int isDir (char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    30
150
75133486ba7e recursion bug: don't follow symlinks
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 121
diff changeset
    31
/* isFile returns true, if a fd points to a file */
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    32
int isFile (char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    33
150
75133486ba7e recursion bug: don't follow symlinks
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 121
diff changeset
    34
/* isLink returns true, if a fd points to a link */
153
b223089872b6 ipv6 support added
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 150
diff changeset
    35
int isLink (char *);
150
75133486ba7e recursion bug: don't follow symlinks
Markus Bröker <mbroeker@largo.dyndns.tv>
parents: 121
diff changeset
    36
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    37
/* getdir prints a dir hierarchy */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    38
void getdir (char *, int);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    39
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    40
/* returns a pointer int*  */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    41
unsigned char *md5sum (char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    42
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    43
void md5recursive (char *, int);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    44
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    45
#endif