md2teach/md2teach/io.h
Jeremy Rand 51f8ff5574 Remove the work on trying to support a BabelFish translator. Chris Vavruska has picked it up because I was struggling with dealing with the 64K code resource limit. His code is here: https://github.com/vavruska/markdownGS
My plan is to go forward with just a shell command which is focused only on markdown to Teach file conversion, intended to be used in my build engine under Golden Gate.
2021-06-22 23:56:19 -04:00

27 lines
588 B
C

/*
* io.h
* md2teach
*
* Created by Jeremy Rand on 2021-04-24.
*
*/
#ifndef _GUARD_PROJECTmd2teach_FILEio_
#define _GUARD_PROJECTmd2teach_FILEio_
#include "md4c.h"
extern int openOutputFile(const char * filename);
extern void writeChar(MD_CHAR ch);
extern void writeString(const MD_CHAR * str, MD_SIZE size);
extern MD_SIZE outputPos(void);
extern int closeOutputFile(void);
extern const MD_CHAR * readInputFile(const char * filename, MD_SIZE * bufferSize);
extern void releaseInputBuffer(const MD_CHAR * inputBuffer);
#endif /* define _GUARD_PROJECTmd2teach_FILEio_ */