lsflib/include/lsf.h
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 16 Apr 2009 12:49:12 +0200
changeset 42 83b8151b966d
parent 9 c3fecc82ade6
permissions -rw-r--r--
Klassenhierarchie erneuert, Codebase erneuert * Object -> Drawable -> ... * Surface stellt eine SDL Schnittstelle bereit * namespace pmc wurde aufgegeben * DEBUG Option im Makefile Bekannte Fehler: * Jedes Drawable muss wissen und checken, ob es gezeichnet werden kann oder nicht * Diese *P[i] = *P[i] + location Konstrukte machen mich irgendwie nervös... -> operator* entfernt... committer: Markus Bröker <mbroeker@largo.homelinux.org>

/**
 * test/demos/lsflib/include/lsf.h
 * Copyright (C) 2008 Markus Broeker
 */

#ifndef __LSF_H__
#define __LSF_H__

#ifndef LINE_LENGTH
#define LINE_LENGTH 100
#endif

#include <stdio.h>
#ifndef __LIST__H
#include <list.h>
#endif

/* tokenizer splits a file into tokens */
Node *tokenizer (FILE *, const char *);

/* tokenchar splits a file into chars */
int tokenchar (FILE *);

/* get_line returns a multiline string str="...\n..." */
char *get_line (const char *, const char *, size_t);

/* isDir returns true, if a fd points to a dir */
int isDir (char *);

/* isDir returns true, if a fd points to a file */
int isFile (char *);

/* getdir prints a dir hierarchy */
void getdir (char *, int);

/* returns a pointer int*  */
unsigned char *md5sum (char *);

void md5recursive (char *, int);

#endif