diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2015-12-07 00:21:16 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2015-12-07 00:41:48 +0800 |
commit | c3af1c1e02676ef27e46a98578f218e7ef7f1513 (patch) | |
tree | a7dd09eca2e2ea42dd79fe37c9fa8133b21b69bc | |
parent | 8067d2311695a42a4cef8add142cd08cf50d694e (diff) | |
download | stringbench-c3af1c1e02676ef27e46a98578f218e7ef7f1513.tar.gz |
dhry_1.c: change to use fgets instead of getsRLCR-16.01
since gets is defined as deprecated on android.
and will cause problem when build with linaro gcc5.2
Change-Id: I6b894b4aee507066afbdd52e8691b3a45eaee878
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | dhry_1.c | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -460,36 +460,36 @@ int Int_Glob; { printf ("Enter the following which will be added with results to file DHRY.TXT\n"); printf ("When submitting a number of results you need only provide details once\n"); - printf ("but a cross reference such as an abbreviated CPU type would be useful.\n"); + printf ("but a cross reference such as an abbreviated CPU type would be useful.\n"); printf ("You can kill (exit or close) the program now and no data will be added.\n\n"); - + printf ("PC Supplier/model ? "); - gets(general[1]); - + fgets(general[1], 80, stdin); + printf ("CPU chip ? "); - gets(general[2]); - + fgets(general[3], 80, stdin); + printf ("Clock MHz ? "); - gets(general[3]); - + fgets(general[3], 80, stdin); + printf ("Cache size ? "); - gets(general[4]); - + fgets(general[4], 80, stdin); + printf ("Chipset & H/W options ? "); - gets(general[5]); - + fgets(general[5], 80, stdin); + printf ("OS/DOS version ? "); - gets(general[6]); - + fgets(general[6], 80, stdin); + printf ("Your name ? "); - gets(general[7]); - + fgets(general[7], 80, stdin); + printf ("Company/Location ? "); - gets(general[8]); - + fgets(general[8], 80, stdin); + printf ("E-mail address ? "); - gets(general[0]); - } + fgets(general[0], 80, stdin); + } /************************************************************************ * Add results to output file Dhry.txt * ************************************************************************/ |