Atlas - DW.H
Home / systems / IBM-PC / DataWorks / src Lines: 1 | Size: 976 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1#ifndef DW_H 2#define DW_H 3 4#define DW_SEP 31 5#define DW_MAX_LINE 4096 6#define DW_MAX_ROWS 256 7#define DW_MAX_COLS 64 8#define DW_MAX_CELL 128 9 10typedef struct { 11 int rows; 12 int cols; 13 char ***cells; 14} DWTable; 15 16void dw_trim(char *s); 17int dw_stricmp(const char *a, const char *b); 18void dw_copy_cell(char *dst, const char *src); 19int dw_parse_cell_ref(const char *text, int *row, int *col); 20 21void dw_init_table(DWTable *table); 22void dw_free_table(DWTable *table); 23int dw_load_file(const char *path, DWTable *table); 24int dw_save_file(const char *path, const DWTable *table); 25void dw_print_table(const DWTable *table); 26int dw_insert(DWTable *table, const char *value, int data_row, int col); 27int dw_del_col(DWTable *table, int col_index); 28int dw_set_col_name(DWTable *table, int col_index, const char *name); 29 30void dw_print_help(void); 31int dw_run_command(const char *path, int argc, char **argv); 32 33int dw_cli_main(int argc, char **argv); 34 35#endif 36 37[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.