From 77dca6bed7205ae9c44104bcbb2ee9df8def33d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nut=CC=A6iu?= Date: Fri, 15 Apr 2016 12:59:58 +0300 Subject: [PATCH] Updating search --- lab8/2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab8/2.c b/lab8/2.c index 36b6a1b..95c3827 100644 --- a/lab8/2.c +++ b/lab8/2.c @@ -123,7 +123,7 @@ void search_entry(FILE * file, long imei) { short found = 0; for( int i = 0; fread(&entry, sizeof(Database), 1, file); i++ ) { if ( entry.imei == imei ) { - if (!found) display_header(); + if (!found) display_header(); // Display header only once. display_entry(&entry, i); found = 1; }