Rev 32 | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*
* Copyright (C) 2015 by Andreas Theofilu <andreas@theosys.at>
*
* All rights reserved. No warranty, explicit or implicit, provided.
*
* NOTICE: All information contained herein is, and remains
* the property of Andreas Theofilu and his suppliers, if any.
* The intellectual and technical concepts contained
* herein are proprietary to Andreas Theofilu and its suppliers and
* may be covered by European and Foreign Patents, patents in process,
* and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Andreas Theofilu.
*/
#ifndef __HELPLIB__
#define __HELPLIB__
#include <unistd.h>
#define FALSE 0
#define TRUE 1
typedef void *waitcall(void *);
char *remove_string(char *str, char *search, char *ret);
char *trim(char *str);
char *readLine(int fd, char *buf, int bufLen);
char *urlencode(char *str);
char *urldecode(char *str);
char *ASCIItoUTF8(char *str);
char *str_replace(char *in, char *pattern, char *by);
char *char_replace(char *in, char needle, char by);
int isnumeric(char *str);
char *secondsToString(double seconds, char *buf);
long random_at_most (long max);
char *str2hash(const char *str, int length);
char *strsplitt(char *str, char tok);
char *getFileExtension(const char *file);
void delay (useconds_t ms);
void waiting(useconds_t ms, waitcall callback, void *data);
#endif