diff uicc/hlread.c @ 133:ede661d78730

fc-uicc-tool: command shell features match fc-simtool
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Feb 2021 22:30:54 +0000
parents d4b5a6e547ca
children
line wrap: on
line diff
--- a/uicc/hlread.c	Sat Feb 20 22:23:03 2021 +0000
+++ b/uicc/hlread.c	Sat Feb 20 22:30:54 2021 +0000
@@ -7,7 +7,9 @@
 #include "simresp.h"
 #include "file_id.h"
 
-cmd_iccid()
+cmd_iccid(argc, argv, outf)
+	char **argv;
+	FILE *outf;
 {
 	int rc;
 	unsigned len;
@@ -33,6 +35,6 @@
 	for (cp = buf + 20; (cp > buf + 1) && (cp[-1] == 'F'); cp--)
 		;
 	*cp = '\0';
-	printf("%s\n", buf);
+	fprintf(outf, "%s\n", buf);
 	return(0);
 }