mirror of
https://github.com/jeremysrand/md2teach.git
synced 2024-05-28 22:41:38 +00:00
51f8ff5574
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.
27 lines
588 B
C
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_ */
|