Add const qualifier in c2pstr/p2cstr declarations.

This reflects their actual behavior and may prevent some errors when using strict type checking.
This commit is contained in:
Stephen Heumann 2023-04-30 21:37:16 -05:00
parent 118e326ac9
commit 338bfdd908
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ typedef unsigned long size_t;
#endif
#ifndef __KeepNamespacePure__
char *c2pstr(char *);
char *c2pstr(const char *);
#endif
void *memchr(const void *, int, size_t);
int memcmp(const void *, const void *, size_t);
@ -31,7 +31,7 @@ void *memcpy(void *, const void *, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
#ifndef __KeepNamespacePure__
char *p2cstr(char *);
char *p2cstr(const char *);
#endif
char *strcat(char *, const char *);
char *strchr(const char *, int);