-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstring.h
More file actions
22 lines (16 loc) · 715 Bytes
/
string.h
File metadata and controls
22 lines (16 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef FZ_STRING_H_
#define FZ_STRING_H_
#include <stdlib.h> // size_t
extern int strlen(const char *);
extern char *strchr(const char *s, int c);
extern char *strcat(char *dest, const char *src);
extern char *strdup(const char *src);
extern int strncmp(const char *s1, const char *s2, size_t n);
extern char *strcpy(char *dest, const char *src);
extern char *strncpy(char *dest, const char *src, size_t n);
extern void *memmove(void *dest, const void *src, size_t n);
extern void *memset(void *s, int c, size_t n);
extern void *memcpy(void *dest, const void *src, size_t n);
extern int memcmp(const void *s1, const void *s2, size_t n);
int snprintf(char *buf, unsigned int sz, const char *fmt, ...);
#endif