mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-03 02:53:04 +02:00
use strchr() instead of strstr()
This commit is contained in:
+1
-1
@@ -666,7 +666,7 @@ get_comma_separated_values( char *values[], char *str ) {
|
||||
int count = 0;
|
||||
char *ptr, *comma_ptr, keep;
|
||||
|
||||
while ( ( comma_ptr = strstr( str, "," ) ) != NULL ) {
|
||||
while ( ( comma_ptr = strchr( str, ',' ) ) != NULL ) {
|
||||
ptr = comma_ptr - 1;
|
||||
while ( isspace_c(*ptr) ) ptr--;
|
||||
ptr++; keep = *ptr; *ptr = '\0';
|
||||
|
||||
Reference in New Issue
Block a user