summaryrefslogtreecommitdiff
path: root/src/common/strlib.h
blob: 038eea1c67f041ca5c1d67d852e95a9179da4ef1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef _J_STR_LIB_H_
#define _J_STR_LIB_H_
#define J_MAX_MALLOC_SIZE 65535
// String function library.
// code by Jioh L. Jung (ziozzang@4wish.net)
// This code is under license "BSD"
char* jstrescape (char* pt);
char* jstrescapecpy (char* pt,char* spt);
int jmemescapecpy (char* pt,char* spt, int size);

#if !defined(HAVE_mit_thread) && !defined(HAVE_STRTOK_R)
#define strtok_r(s,delim,save_ptr) athena_strtok_r(s,delim,save_ptr)
char *athena_strtok_r (char *s, const char *delim, char **save_ptr);
#endif

// custom functions
int remove_control_chars(unsigned char *);
char *trim(char *str, const char *delim);
#endif