Subversion Repositories Kolibri OS

Rev

Rev 8687 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8687 Rev 8718
Line 27... Line 27...
27
 
27
 
28
/* Copy a number of n characters from the memory area pointed to by s2 to the
28
/* Copy a number of n characters from the memory area pointed to by s2 to the
29
   area pointed to by s1. If the two areas overlap, behaviour is undefined.
29
   area pointed to by s1. If the two areas overlap, behaviour is undefined.
30
   Returns the value of s1.
30
   Returns the value of s1.
31
*/
-
 
Line 32... Line 31...
32
extern void* _FUNC(memcpy)(void* s1, const void* s2, size_t n);
31
*/
33
 
32
 
34
/* Copy a number of n characters from the memory area pointed to by s2 to the
33
#ifdef __TINYC__
35
   area pointed to by s1. The two areas may overlap.
-
 
36
   Returns the value of s1.
34
extern void* memcpy(void* s1, const void* s2, size_t n);
-
 
35
extern void* memset(void* s, int c, size_t n);
-
 
36
extern void* memmove(void* s1, const void* s2, size_t n);
-
 
37
#else
-
 
38
extern void* _FUNC(memcpy)(void* s1, const void* s2, size_t n);
-
 
39
extern void* _FUNC(memset)(void* s, int c, size_t n);
Line 37... Line 40...
37
*/
40
extern void* _FUNC(memmove)(void* s1, const void* s2, size_t n);
38
extern void* memmove(void* s1, const void* s2, size_t n);
41
#endif
39
 
42
 
40
/* Copy the character array s2 (including terminating '\0' byte) into the
43
/* Copy the character array s2 (including terminating '\0' byte) into the
Line 158... Line 161...
158
   Returns a pointer to the next token.
161
   Returns a pointer to the next token.
159
   WARNING: This function uses static storage, and as such is not reentrant.
162
   WARNING: This function uses static storage, and as such is not reentrant.
160
*/
163
*/
161
extern char* _FUNC(strtok)(char* s1, const char* s2);
164
extern char* _FUNC(strtok)(char* s1, const char* s2);
Line 162... Line -...
162
 
-
 
163
/* Miscellaneous functions */
-
 
164
 
-
 
165
/* Write the character c (interpreted as unsigned char) to the first n
-
 
166
   characters of the memory area pointed to by s.
-
 
167
   Returns s.
-
 
168
*/
-
 
169
extern void* _FUNC(memset)(void* s, int c, size_t n);
-
 
170
 
165
 
171
/* Map an error number to a (locale-specific) error message string. Error
166
/* Map an error number to a (locale-specific) error message string. Error
172
   numbers are typically errno values, but any number is mapped to a message.
167
   numbers are typically errno values, but any number is mapped to a message.
173
   TODO: PDCLib does not yet support locales.
168
   TODO: PDCLib does not yet support locales.
174
*/
169
*/