this library helps you for using Local File System
lfs_useful.h@2:a1a5f37c1573, 2015-04-17 (annotated)
- Committer:
- hirokimineshita
- Date:
- Fri Apr 17 07:01:34 2015 +0000
- Revision:
- 2:a1a5f37c1573
- Parent:
- 1:2ca69b58dae7
- Child:
- 3:3d65120edea0
2015/04/17 PM 4 miner change 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hirokimineshita | 0:48f30ad8e377 | 1 | #ifndef _LFS_USEFUR_H_20150417_1537_ |
hirokimineshita | 0:48f30ad8e377 | 2 | #define _LFS_USEFUR_H_20150417_1537_ |
hirokimineshita | 0:48f30ad8e377 | 3 | |
hirokimineshita | 0:48f30ad8e377 | 4 | /** read some member of csv format document in local file and write in arrangement |
hirokimineshita | 2:a1a5f37c1573 | 5 | * |
hirokimineshita | 0:48f30ad8e377 | 6 | * @param f write FILE *(name) 's name |
hirokimineshita | 0:48f30ad8e377 | 7 | * @param ar arrangement which you want to get data |
hirokimineshita | 0:48f30ad8e377 | 8 | * @param num the number of elements you want to get |
hirokimineshita | 2:a1a5f37c1573 | 9 | */ |
hirokimineshita | 0:48f30ad8e377 | 10 | void read_some(FILE *f,double *ar,int num){ |
hirokimineshita | 0:48f30ad8e377 | 11 | for(int i=0; i<num; i++)fscanf(f,"%lf,",&ar[i]); |
hirokimineshita | 0:48f30ad8e377 | 12 | } |
hirokimineshita | 0:48f30ad8e377 | 13 | |
hirokimineshita | 0:48f30ad8e377 | 14 | #endif |