AC_CONFIG_MACRO_DIR([m4])
PACKAGE=libplpha
-VERSION=1.0.0
+VERSION=0.1.0
CFLAGS="$CFLAGS -g -Wall -Werror"
LDFLAGS="$LDFLAGS -lpthread"
else {
char **arg_arr;
- arg_arr = ret_val->arg_arr;
- arg_arr = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *));
+ arg_arr = ret_val->arg_arr;
+ arg_arr = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *));
ret_val->arg_arr = arg_arr;
}
start = line_pointer;
}
ret_val->arg_arr[ret_val->count] = strndup(start, len);
log_debug("ret_val[%d] = %s\n", ret_val->count, ret_val->arg_arr[ret_val->count]);
- ret_val->count = ret_val->count + 1;
+ ret_val->count = ret_val->count + 1;
}
else {
break;
}
}
// terminate list with null
- ret_val->arg_arr = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *));
+ ret_val->arg_arr = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *));
ret_val->arg_arr[ret_val->count] = NULL;
- ret_val->count = ret_val->count + 1;
+ ret_val->count = ret_val->count + 1;
}
return ret_val;
}