Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | pmbaty | 1 | /* |
2 | * Renamed from stdlib.h to avoid collisions with c std lib |
||
3 | */ |
||
4 | |||
5 | #ifndef _BRSTDLIB_H_ |
||
6 | #define _BRSTDLIB_H_ |
||
7 | |||
8 | #include "brender/br_types.h" |
||
9 | |||
10 | #include <stdarg.h> |
||
11 | #include <stdlib.h> |
||
12 | |||
13 | int BrMemCmp(void* s1, void* s2, size_t n); |
||
14 | |||
15 | void* BrMemCpy(void* s1, void* s2, size_t n); |
||
16 | |||
17 | void* BrMemSet(void* s, int c, size_t n); |
||
18 | |||
19 | char* BrStrCat(char* s1, char* s2); |
||
20 | |||
21 | int BrStrCmp(char* s1, char* s2); |
||
22 | |||
23 | int BrStrICmp(char* s1, char* s2); |
||
24 | |||
25 | char* BrStrCpy(char* s1, const char* s2); |
||
26 | |||
27 | br_size_t BrStrLen(char* s); |
||
28 | |||
29 | int BrStrNCmp(char* s1, char* s2, size_t n); |
||
30 | |||
31 | int BrStrNICmp(char* s1, char* s2, size_t n); |
||
32 | |||
33 | char* BrStrNCpy(char* s1, char* s2, size_t n); |
||
34 | |||
35 | char* BrStrRChr(char* s1, char c); |
||
36 | |||
37 | void BrAbort(void); |
||
38 | |||
39 | char* BrGetEnv(char* name); |
||
40 | |||
41 | float BrStrToF(char* nptr, char** endptr); |
||
42 | |||
43 | double BrStrToD(char* nptr, char** endptr); |
||
44 | |||
45 | long BrStrToL(char* nptr, char** endptr, int base); |
||
46 | |||
47 | unsigned long BrStrToUL(char* nptr, char** endptr, int base); |
||
48 | |||
49 | br_boolean BrIsAlpha(int c); |
||
50 | |||
51 | br_boolean BrIsDigit(int c); |
||
52 | |||
53 | br_boolean BrIsSpace(int c); |
||
54 | |||
55 | br_boolean BrIsPrint(int c); |
||
56 | |||
57 | br_int_32 BrVSprintf(char* buf, const char* fmt, va_list args); |
||
58 | |||
59 | br_int_32 BrVSprintfN(char* buf, br_size_t buf_size, const char* fmt, va_list args); |
||
60 | |||
61 | br_int_32 BrVSScanf(char* buf, const char* fmt, va_list args); |
||
62 | |||
63 | #endif |