this library helps you for using Local File System

Files at this revision

API Documentation at this revision

Comitter:
hirokimineshita
Date:
Fri Apr 17 07:11:44 2015 +0000
Parent:
3:3d65120edea0
Child:
5:6e1bb72b0905
Commit message:
2015/04/17 PM 4 add cpp file

Changed in this revision

lfs_useful.cpp Show annotated file Show diff for this revision Revisions of this file
lfs_useful.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lfs_useful.cpp	Fri Apr 17 07:11:44 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "lfs_useful.h"
+
+/** read_some function :
+ * @bref read some member of csv format document in local file and write in arrangement
+ * @param f write FILE *(name) 's name
+ * @param ar arrangement which you want to get data
+ * @param num the number of elements you want to get
+ */
+void read_some(FILE *f,double *ar,int num){
+    for(int i=0; i<num; i++)fscanf(f,"%lf,",&ar[i]);
+}
\ No newline at end of file
--- a/lfs_useful.h	Fri Apr 17 07:09:00 2015 +0000
+++ b/lfs_useful.h	Fri Apr 17 07:11:44 2015 +0000
@@ -1,14 +1,6 @@
 #ifndef _LFS_USEFUR_H_20150417_1537_
 #define _LFS_USEFUR_H_20150417_1537_
 
-/** read_some function :
- * @bref read some member of csv format document in local file and write in arrangement
- * @param f write FILE *(name) 's name
- * @param ar arrangement which you want to get data
- * @param num the number of elements you want to get
- */
-void read_some(FILE *f,double *ar,int num){
-    for(int i=0; i<num; i++)fscanf(f,"%lf,",&ar[i]);
-}
+void read_some(FILE *f,double *ar,int num);
 
 #endif
\ No newline at end of file