From 8e67c130a4b74fb69e39292ee7bca7735adaefe6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Mon, 30 Jun 2014 01:04:25 +0200 Subject: [PATCH] Read method name --- libhpcs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libhpcs.c b/libhpcs.c index 304e784..416f810 100644 --- a/libhpcs.c +++ b/libhpcs.c @@ -64,6 +64,11 @@ enum HPCS_RetCode hpcs_read_file(const char* filename, struct HPCS_MeasuredData* ret = HPCS_E_PARSE_ERROR; goto out; } + pret = read_string_at_offset(datafile, DATA_OFFSET_METHOD_NAME, &mdata->method_name); + if (pret != PARSE_OK) { + ret = HPCS_E_PARSE_ERROR; + goto out; + } pret = read_date(datafile, &mdata->date); if (pret != PARSE_OK) { ret = HPCS_E_PARSE_ERROR; -- 2.43.5