]> git.sur5r.net Git - cc65/blob - include/string.h
strdup is now a fastcall function
[cc65] / include / string.h
1 /*
2  * string.h
3  *
4  * Ullrich von Bassewitz, 04.06.1998
5  *
6  */
7
8
9
10 #ifndef _STRING_H
11 #define _STRING_H
12
13
14
15 #include <stddef.h>
16
17
18
19 char* __fastcall__ strcat (char* dest, const char* src);
20 char* __fastcall__ strchr (const char* s, int c);
21 int __fastcall__ strcmp (const char* s1, const char* s2);
22 int __fastcall__ strcoll (const char* s1, const char* s2);
23 char* __fastcall__ strcpy (char* dest, const char* src);
24 size_t __fastcall__ strcspn (const char* s1, const char* s2);
25 char* __fastcall__ strerror (int errcode);
26 size_t __fastcall__ strlen (const char* s);
27 char* __fastcall__ strncat (char* s1, const char* s2, size_t count);
28 int __fastcall__ strncmp (const char* s1, const char* s2, size_t count);
29 char* __fastcall__ strncpy (char* dest, const char* src, size_t count);
30 char* __fastcall__ strrchr (const char* s, int c);
31 size_t __fastcall__ strspn (const char* s1, const char* s2);
32 char* __fastcall__ strstr (const char* str, const char* substr);
33 char* strtok (char* s1, const char* s2);
34 size_t strxfrm (char* s1, const char* s2, size_t count);
35 void* __fastcall__ memchr (const void* mem, int c, size_t count);
36 int __fastcall__ memcmp (const void* p1, const void* p2, size_t count);
37 void* __fastcall__ memcpy (void* dest, const void* src, size_t count);
38 void* __fastcall__ memmove (void* dest, const void* src, size_t count);
39 void* __fastcall__ memset (void* s, int c, size_t count);
40
41 /* Non standard: */
42 #ifndef __STRICT_ANSI__
43 char* __fastcall__ strdup (const char* s);                    /* SYSV/BSD */
44 int __fastcall__ stricmp (const char* s1, const char* s2);    /* DOS/Windows */
45 int __fastcall__ strcasecmp (const char* s1, const char* s2); /* Same for Unix */
46 char* __fastcall__ strlwr (char* s);
47 char* __fastcall__ strlower (char* s);
48 char* __fastcall__ strupr (char* s);
49 char* __fastcall__ strupper (char* s);
50 #endif
51
52
53
54 /* End of string.h */
55 #endif
56
57
58