Subversion Repositories mdb

Rev

Rev 32 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 andreas 1
/*
2
 * Copyright (C) 2015 by Andreas Theofilu <andreas@theosys.at>
3
 *
4
 * All rights reserved. No warranty, explicit or implicit, provided.
5
 *
6
 * NOTICE:  All information contained herein is, and remains
7
 * the property of Andreas Theofilu and his suppliers, if any.
8
 * The intellectual and technical concepts contained
9
 * herein are proprietary to Andreas Theofilu and its suppliers and
10
 * may be covered by European and Foreign Patents, patents in process,
11
 * and are protected by trade secret or copyright law.
12
 * Dissemination of this information or reproduction of this material
13
 * is strictly forbidden unless prior written permission is obtained
14
 * from Andreas Theofilu.
15
 */
16
 
17
#ifndef __HELPLIB__
18
#define __HELPLIB__
19
 
49 andreas 20
#include <unistd.h>
21
 
2 andreas 22
#define FALSE	0
23
#define TRUE	1
24
 
49 andreas 25
typedef void *waitcall(void *);
26
 
2 andreas 27
char *remove_string(char *str, char *search, char *ret);
28
char *trim(char *str);
29
char *readLine(int fd, char *buf, int bufLen);
4 andreas 30
char *urlencode(char *str);
31
char *urldecode(char *str);
5 andreas 32
char *ASCIItoUTF8(char *str);
33
char *str_replace(char *in, char *pattern, char *by);
34
char *char_replace(char *in, char needle, char by);
6 andreas 35
int isnumeric(char *str);
7 andreas 36
char *secondsToString(double seconds, char *buf);
11 andreas 37
long random_at_most (long max);
22 andreas 38
char *str2hash(const char *str, int length);
30 andreas 39
char *strsplitt(char *str, char tok);
32 andreas 40
char *getFileExtension(const char *file);
49 andreas 41
void delay (useconds_t ms);
42
void waiting(useconds_t ms, waitcall callback, void *data);
2 andreas 43
 
44
#endif