This repository was archived by the owner on Jun 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.h
More file actions
29 lines (26 loc) · 1.58 KB
/
string.h
File metadata and controls
29 lines (26 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef STRING_H_
#define STRING_H_
#define size_t unsigned long
void *memcpy ( void *s1, const void *s2, size_t n ); // Implemented!
void *memmove ( void *s1, const void *s2, size_t n ); // Implemented!
char *strcpy ( char *s1, const char *s2 ); // Priority
char *strncpy ( char *s1, const char *s2, size_t n ); // Priority
char *strcat ( char *s1, const char *s2 ); // Priority
char *strncat ( char *s1, const char *s2, size_t n ); // Priority
int memcmp ( const void *s1, const void *s2, size_t n ); // Implemented!
int strcmp ( const char *s1, const char *s2 ); // Implemented!
int strcoll ( const char *s1, const char *s2 );
int strncmp ( const char *s1, const char *s2, size_t n ); // Implemented!
size_t strxfrm ( char *s1, const char *s2, size_t n );
void *memchr ( const void *s, int c, size_t n );
char *strchr ( const char *s, int c );
size_t strcspn ( const char *s1, const char *s2 );
char *strpbrk ( const char *s1, const char *s2 );
char *strrchr ( const char *s, int c );
size_t strspn ( const char *s1, const char *s2 );
char *strstr ( const char *s1, const char *s2 );
char *strtok ( char *s1, const char *s2 );
void *memset ( void *s, int c, size_t n ); // Implemented!
char *strerror ( int errnum );
size_t strlen ( const char *s ); // Implemented!
#endif