|
|
|
@ -494,7 +494,7 @@ int yon_char_check_begins_with(char *haystack, char *needle){
|
|
|
|
|
|
|
|
|
|
|
|
char *yon_char_parsed_check_exist_begins_with(char **target, int size, char *compare){
|
|
|
|
char *yon_char_parsed_check_exist_begins_with(char **target, int size, char *compare){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
if (yon_char_check_begins_with(target[i],compare)!=-1){
|
|
|
|
if (yon_char_check_begins_with(target[i],compare)){
|
|
|
|
return yon_char_new(target[i]);
|
|
|
|
return yon_char_new(target[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -590,12 +590,8 @@ char *yon_char_divide_search(char *source, char *dividepos, int delete_divider)
|
|
|
|
|
|
|
|
|
|
|
|
char *yon_char_from_int(int int_to_convert)
|
|
|
|
char *yon_char_from_int(int int_to_convert)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i = 1;
|
|
|
|
int i = snprintf( NULL, 0, "%d", int_to_convert );
|
|
|
|
float convert_check = (float)int_to_convert;
|
|
|
|
|
|
|
|
for (i = 1; convert_check >= 10; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
convert_check = convert_check / 10;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
char *ch = malloc(i * sizeof(char) + 1);
|
|
|
|
char *ch = malloc(i * sizeof(char) + 1);
|
|
|
|
memset(ch,0,i * sizeof(char) + 1);
|
|
|
|
memset(ch,0,i * sizeof(char) + 1);
|
|
|
|
sprintf(ch, "%d", int_to_convert);
|
|
|
|
sprintf(ch, "%d", int_to_convert);
|
|
|
|
|