mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-26 03:32:45 +00:00
Add const qualifiers in some non-standard function declarations.
This makes their headers and their specifications in the manual consistent with their actual behavior. The const qualifiers in the headers may prevent errors when using strict type checking.
This commit is contained in:
parent
f815c1bda6
commit
6905d8dced
BIN
Manual.docx
BIN
Manual.docx
Binary file not shown.
@ -35,6 +35,6 @@ int fcntl(int, int, ...);
|
||||
long lseek(int, long, int);
|
||||
int open(const char *, int, ...);
|
||||
int read(int, void *, unsigned);
|
||||
int write(int, void *, unsigned);
|
||||
int write(int, const void *, unsigned);
|
||||
|
||||
#endif
|
||||
|
@ -46,12 +46,12 @@ int strncmp(const char *, const char *, size_t);
|
||||
char *strncpy(char *, const char *, size_t);
|
||||
char *strpbrk(const char *, const char *);
|
||||
#ifndef __KeepNamespacePure__
|
||||
int strpos(char *, char);
|
||||
int strpos(const char *, char);
|
||||
#endif
|
||||
char *strrchr(const char *, int);
|
||||
#ifndef __KeepNamespacePure__
|
||||
char *strrpbrk(char *, char *);
|
||||
int strrpos(char *, char);
|
||||
char *strrpbrk(const char *, const char *);
|
||||
int strrpos(const char *, char);
|
||||
#endif
|
||||
size_t strspn(const char *, const char *);
|
||||
char *strstr(const char *, const char *);
|
||||
|
Loading…
Reference in New Issue
Block a user