mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-26 10:29:27 +08:00
Added (premilinary) support for null columns.
Added support routines for C files generated by parsecsv utilities.
This commit is contained in:
@@ -19,7 +19,7 @@ LIBS =
|
||||
INSTALL= @INSTALL@
|
||||
|
||||
PROGS = mdb-dump
|
||||
OBJS = dump.o
|
||||
OBJS = dump.o
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
|
||||
22
src/extras/mdbsupport.c
Normal file
22
src/extras/mdbsupport.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* support routines for code generated by the util programs */
|
||||
|
||||
#include "util.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void dump_int (int i)
|
||||
{
|
||||
fprintf (stdout, ">>%d<<\n", i);
|
||||
}
|
||||
|
||||
void dump_long (long l)
|
||||
{
|
||||
fprintf (stdout, ">>%ld<<\n", l);
|
||||
}
|
||||
|
||||
void dump_string (char *s)
|
||||
{
|
||||
if ((s == NULL) || (strlen (s) == 0))
|
||||
fprintf (stdout, "(null)\n");
|
||||
else
|
||||
fprintf (stdout, ">>%s<<\n", s);
|
||||
}
|
||||
4
src/extras/mdbsupport.h
Normal file
4
src/extras/mdbsupport.h
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
void dump_int (int i);
|
||||
void dump_long (long l);
|
||||
void dump_string (char *s);
|
||||
Reference in New Issue
Block a user