mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added missing extern "C" linkages in libmaxsi/string.cpp.
This commit is contained in:
parent
7082ac4ac9
commit
c1affdf6db
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ namespace Maxsi
|
|||
}
|
||||
}
|
||||
|
||||
char* strpbrk(const char* str, const char* accept)
|
||||
extern "C" char* strpbrk(const char* str, const char* accept)
|
||||
{
|
||||
size_t rejectlen = Reject(str, accept);
|
||||
if ( !str[rejectlen] ) { return NULL; }
|
||||
|
@ -299,7 +299,7 @@ namespace Maxsi
|
|||
|
||||
// TODO: This simple and hacky implementation runs in O(N^2) even though
|
||||
// this problem can be solved in O(N).
|
||||
char* strstr(const char* haystack, const char* needle)
|
||||
extern "C" char* strstr(const char* haystack, const char* needle)
|
||||
{
|
||||
if ( !needle[0] ) { return (char*) haystack; }
|
||||
for ( size_t i = 0; haystack[i]; i++ )
|
||||
|
|
Loading…
Add table
Reference in a new issue