File: my-string.h

package info (click to toggle)
fsp 2.71-8hamm10
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 988 kB
  • ctags: 1,287
  • sloc: ansic: 7,715; makefile: 363; sh: 118
file content (35 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
#ifndef _FSP_MY_STRING_H_
#define _FSP_MY_STRING_H_

#if defined(STRING_H_BOGUS) && defined(STDC_HEADERS)
extern void     bzero(char *, int);
extern void    *memset(void *, int, size_t);
extern char    *strcpy(char *, const char *);
extern char    *strncpy(char *, const char *, size_t);
extern char    *strcat(char *, const char *);
extern int      strcmp(const char *, const char *);
extern int      strncmp(const char *, const char *, size_t);
extern char    *strchr(const char *, int);
extern char    *strerror(int);
#else

#if STDC_HEADERS || HAVE_STRING_H
#include <string.h>
/* An ANSI string.h and pre-ANSI memory.h might conflict.  */
#if !STDC_HEADERS && HAVE_MEMORY_H
#include <memory.h>
#endif /* not STDC_HEADERS and HAVE_MEMORY_H */

#endif

#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif

#endif

#ifdef NEED_BCOPY
#define bcopy(s, d, n) memcpy((d), (s), (n))
#endif

#endif /* _FSP_MY_STRING_H_ */