mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Replace Maxsi::String::Seek with strchr.
This commit is contained in:
parent
2206412e14
commit
6ce762aac4
3 changed files with 3 additions and 3 deletions
|
@ -1083,7 +1083,7 @@ char* GetCurrentVideoMode()
|
|||
using namespace Maxsi;
|
||||
extern "C" bool ReadParamString(const char* str, ...)
|
||||
{
|
||||
if ( String::Seek(str, '\n') ) { errno = EINVAL; }
|
||||
if ( strchr(str, '\n') ) { errno = EINVAL; }
|
||||
const char* keyname;
|
||||
va_list args;
|
||||
while ( *str )
|
||||
|
|
|
@ -32,7 +32,7 @@ using namespace Maxsi;
|
|||
|
||||
extern "C" bool ReadParamString(const char* str, ...)
|
||||
{
|
||||
if ( String::Seek(str, '\n') ) { errno = EINVAL; }
|
||||
if ( strchr(str, '\n') ) { errno = EINVAL; }
|
||||
const char* keyname;
|
||||
va_list args;
|
||||
while ( *str )
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Sortix {
|
|||
|
||||
bool ReadParamString(const char* str, ...)
|
||||
{
|
||||
if ( String::Seek(str, '\n') ) { errno = EINVAL; }
|
||||
if ( strchr(str, '\n') ) { errno = EINVAL; }
|
||||
const char* keyname;
|
||||
va_list args;
|
||||
while ( *str )
|
||||
|
|
Loading…
Add table
Reference in a new issue