Subversion Repositories mdb

Rev

Rev 32 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32 Rev 49
Line 15... Line 15...
15
 */
15
 */
16
 
16
 
17
#ifndef __HELPLIB__
17
#ifndef __HELPLIB__
18
#define __HELPLIB__
18
#define __HELPLIB__
19
 
19
 
-
 
20
#include <unistd.h>
-
 
21
 
20
#define FALSE	0
22
#define FALSE	0
21
#define TRUE	1
23
#define TRUE	1
22
 
24
 
-
 
25
typedef void *waitcall(void *);
-
 
26
 
23
char *remove_string(char *str, char *search, char *ret);
27
char *remove_string(char *str, char *search, char *ret);
24
char *trim(char *str);
28
char *trim(char *str);
25
char *readLine(int fd, char *buf, int bufLen);
29
char *readLine(int fd, char *buf, int bufLen);
26
char *urlencode(char *str);
30
char *urlencode(char *str);
27
char *urldecode(char *str);
31
char *urldecode(char *str);
Line 32... Line 36...
32
char *secondsToString(double seconds, char *buf);
36
char *secondsToString(double seconds, char *buf);
33
long random_at_most (long max);
37
long random_at_most (long max);
34
char *str2hash(const char *str, int length);
38
char *str2hash(const char *str, int length);
35
char *strsplitt(char *str, char tok);
39
char *strsplitt(char *str, char tok);
36
char *getFileExtension(const char *file);
40
char *getFileExtension(const char *file);
-
 
41
void delay (useconds_t ms);
-
 
42
void waiting(useconds_t ms, waitcall callback, void *data);
37
 
43
 
38
#endif
44
#endif