-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmstrutils.h
More file actions
20 lines (18 loc) · 750 Bytes
/
mstrutils.h
File metadata and controls
20 lines (18 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MSTRUTILS_H
#define MSTRUTILS_H
int mstrlen(const char *str);
int mstrcmp(const char *str1, const char *str2);
char *mstrcpy(char *dst, const char *src);
char *mstrchr(const char *str, int ch);
char *mstrstr(const char *str, const char *substr);
int mstrncmp(const char *str1, const char *str2, int n);
char *mstrncpy(char *dst, const char *src, int n);
char *mstrcat(char *dst, const char *src);
char *mstrncat(char *dst, const char *src, int n);
void *mmemcpy(void *dst, const void *src, int n);
int mmemcmp(const void *ptr1, const void *ptr2, int n);
void *mmemmove(void *dst, const void *src, int n);
void *mmemset(void *dst, int ch, int n);
char *mstrrchr(const char *str, int ch);
void *mmemchr(const void *ptr, int c, int n);
#endif