diff --git a/libytest.so b/libytest.so index 88436bc..3606147 100644 Binary files a/libytest.so and b/libytest.so differ diff --git a/yftest/src/ftest/ftest.c b/yftest/src/ftest/ftest.c index 04d476a..4a99d1e 100644 --- a/yftest/src/ftest/ftest.c +++ b/yftest/src/ftest/ftest.c @@ -471,6 +471,7 @@ long int extract_num_after_equal_symbole_in_string(char * in_str){ void extract_to_array_TYPE_SIZE_T(char * in_str){ size_t len=strlen(in_str); long int val=0, p=10; + int added=0;/* if the number is 0, without this var , the precedent algo did not work */ for(long i=0; i= '0' && in_str[i] <= '9' ){ val = (p * val) + (in_str[i]-'0'); + added=1; } else{ /* rec val in array */ PRINT_DEBUG("val=(%ld) \n",val); array_TYPE_SIZE_T[cur_array_TYPE_SIZE_T++]=val; val=0; + added=0; } } PRINT_DEBUG("end val=(%ld) \n",val); - if(val) + if(added) array_TYPE_SIZE_T[cur_array_TYPE_SIZE_T++]=val; }