Holger Lubitz
|
8bb295e3fd
|
use malloc attribute
|
17 роки тому |
Holger Lubitz
|
7e1db201b9
|
strdup and strndup call malloc and are not pure
|
17 роки тому |
Holger Lubitz
|
7e8e4f8abd
|
declare pointers passed to string functions as nonnull
|
17 роки тому |
Holger Lubitz
|
8e3e97fcef
|
set __pure attribute where possible
|
17 роки тому |
Michael Brown
|
7137c20ed1
|
Add strcspn() and strndup()
|
17 роки тому |
Michael Brown
|
afe4e011ac
|
Move tolower() etc to ctype.h as per ISO C
|
18 роки тому |
Michael Brown
|
1a0ca661c2
|
4.3BSD says that bcopy and bzero are defined in strings.h, not string.h
|
18 роки тому |
Michael Brown
|
e5f0898f38
|
Move strerror() prototype to string.h, where it belongs
|
18 роки тому |
Michael Brown
|
496563071d
|
Added strdup()
|
18 роки тому |
Michael Brown
|
82342e0b8f
|
Marked memcmp/strcmp as "pure" functions, to allow gcc to optimise
away code such as
if ( strcmp ( some_string, "some_value" ) != 0 ) {
DBG ( "Bad value received!" );
}
|
18 роки тому |
Michael Brown
|
1d7cfd5acf
|
Prototype now clashes with the macro in arch/i386.
|
18 роки тому |
Michael Brown
|
a6057b4cbc
|
Need stddef.h to get size_t
|
19 роки тому |
Michael Brown
|
3d6123e69a
|
Initial revision
|
20 роки тому |