9cdf20e7a7
Create libeasycsv_string library
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 18:22:42 +02:00
924e47bacc
Move purely string-manipulation function to a separate file
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 17:49:57 +02:00
b0e3062d59
Add easycsv_get_row and easycsv_set_charp_to_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 16:46:19 +02:00
d6f0b0260e
Fixed easycsv_init for write mode
...
* easycsv fp member is now char buffer array
* csv_exist now has correct bool value
* easycsv_init now returns NULL if malloc fails or csv file is empty in read mode
* easycsv_free now properly destroys csv
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 15:11:57 +02:00
4b3c7bbb97
Add EASYCSV_MEMALLOC error flag
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 15:10:31 +02:00
006cd346e9
In easycsv_print_columns/rows, check NULL pointer
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 13:50:54 +02:00
679160e208
Fix easycsv_find_num_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 13:43:25 +02:00
0793a5a1c6
In easycsv_read_value, check if row and col are valid
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-17 13:36:09 +02:00
7ce936b8d1
Add easycsv_find_num_value (errorenous), fixed easycsv_read_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 22:59:42 +02:00
cba239de98
Remove unnessary rewind
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 21:49:47 +02:00
1a0e8e5bcb
Add easycsv_find_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 21:31:51 +02:00
4647b72551
Add error message for easycsv_find_value fail
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 21:31:31 +02:00
39059b3e49
Remove unneeded variables and initialisations in easycsv_read_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 20:57:46 +02:00
3304163ab0
Fix easycsv_read_value with more tests
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 20:57:03 +02:00
2fa4ca384c
Fix easycsv_read_value
...
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 20:25:30 +02:00
d4b53ede9b
All private members are now public members.
...
* Construction, destruction, print row, print columns all work in READ mode
Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
2021-07-16 18:46:36 +02:00
fc57b7639b
Separated private and public methods
2021-07-11 16:44:11 +02:00
83662a410e
Move easycsv.h to include/ directory
2021-07-11 12:03:27 +02:00
0354afb2b7
Fix _priv->fp malloc & strcpy
2021-06-29 23:37:41 +02:00
a8480a2fcf
Comment bugged _priv->fp malloc and fix malloc of easycsv *csv in easycsv_init
2021-06-29 23:33:34 +02:00
b2f9953f31
Set all members to NULL or 0 manually and implement fopen under EASYCSV_W
2021-06-29 22:56:55 +02:00
6199dc4a12
Fix malloc size
2021-06-28 12:11:14 +02:00
0117c62230
Fix typo '_easycsv_checkcsvandstring_two'
2021-06-27 21:19:44 +02:00
4b8ad08ce6
Implementation of automake
2021-06-27 18:56:38 +02:00
d61ca87864
Add missing curly bracket
2021-06-27 18:54:15 +02:00
e69ecdac9e
Remove temporary files
2021-06-27 18:21:23 +02:00
Pradana Aumars
5fe0285184
Set proper email address
2018-02-22 14:23:23 +01:00
Pradana Aumars
a143d3db93
Added more features
2018-02-21 20:40:51 +01:00
Pradana Aumars
e1d1e9f723
Initial commit
2018-02-11 18:14:34 +01:00