Browse Source

strdup and strndup call malloc and are not pure

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
7e1db201b9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/string.h

+ 2
- 2
src/include/string.h View File

41
 void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
41
 void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
42
 char * __pure strstr(const char * s1,const char * s2) __nonnull;
42
 char * __pure strstr(const char * s1,const char * s2) __nonnull;
43
 void * __pure memchr(const void *s, int c, size_t n) __nonnull;
43
 void * __pure memchr(const void *s, int c, size_t n) __nonnull;
44
-char * __pure strdup(const char *s) __nonnull;
45
-char * __pure strndup(const char *s, size_t n) __nonnull;
44
+char * strdup(const char *s) __nonnull;
45
+char * strndup(const char *s, size_t n) __nonnull;
46
 
46
 
47
 extern const char * strerror ( int errno );
47
 extern const char * strerror ( int errno );
48
 
48
 

Loading…
Cancel
Save